Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Problemi with C++


#1

Hi Tobias,

I found some problem using last version with C++ when i compile with *.lib it cannot compile and the linker report the error

[ILINK32 Error] Fatal: Unable to open file ‘DB.OBJ’

more over when i compile in standard way the application doesn’t start at all. Removing all reference from SmartInspect the application run fine.

BTW C++ is officially supported or not ?

Regards
Ing Giuseppe ‘Geppo’ Monteleone


#2

Hello Giuseppe,

Actually, (Borland/CodeGear) C++ is supported, but I must admit that it does not get the same attention in respect to testing as the primary platforms (Delphi, Java and .NET). Which version of C++ do you use?


#3

Hi Tobias,

I have RADStudio 2007 With december update.
Help show me this version 11.0.2902.10471.

Thanks for help
Regards Ing Giuseppe ‘Geppo’ Monteleone


#4

Eureka!
problem solved!!

  1. for problem compiling a SmartInspectEnabled app. you need include SmartInspect BPL in system path, I think that your new installer doesn’t update ENV PATH variable and debugger give strange error when doesn’t find a Bpl

  2. for static link you have to include followin lines in your file (I put these in main form)

#pragma link "SmartInspectD2007.lib" #pragma link "dbrtl.lib"

Regards
Ing Giuseppe ‘Geppo’ Monteleone


#5

Hello Giuseppe,

Thanks for the update. I will make sure that we integrate this information into our help and also look into fixing into the installer issue. By the way, if you are not using any database logging routines, you should be able to remove the dependency on dbrtl.lib if you define “SI_DISABLE_DB” (for example, in the SmartInspect.inc include file) and recompile the source code.