Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Service Pin
Garth J Lancaster10-Aug-05 17:30
professionalGarth J Lancaster10-Aug-05 17:30 
GeneralRe: Windows Service Pin
Jose Lamas Rios10-Aug-05 17:45
Jose Lamas Rios10-Aug-05 17:45 
GeneralRe: Windows Service Pin
Garth J Lancaster10-Aug-05 17:28
professionalGarth J Lancaster10-Aug-05 17:28 
GeneralRe: Windows Service Pin
zhaopi10-Aug-05 22:13
zhaopi10-Aug-05 22:13 
Generalneed help about use lib Pin
hongmuer10-Aug-05 16:42
hongmuer10-Aug-05 16:42 
GeneralRe: need help about use lib Pin
Jose Lamas Rios10-Aug-05 17:50
Jose Lamas Rios10-Aug-05 17:50 
GeneralRe: need help about use lib Pin
hongmuer11-Aug-05 6:13
hongmuer11-Aug-05 6:13 
GeneralRe: need help about use lib Pin
Jose Lamas Rios11-Aug-05 18:13
Jose Lamas Rios11-Aug-05 18:13 
wanthelp wrote:
so, I think the default option "Debug Multithreaded Dll" is a good one

Ok. That's for one of the projects. But you also mentioned you had a lib, which is used by the project that produces the exe, right? My point was that you made sure the option setting was the same in the lib project and in the exe project.

More details:

According to your post, the linker errors appear while linking GATest.exe, right?

Each of the errors is saying that some symbol (e.g.: _exit), which is defined in some object code file (e.g.: crt0dat.obj) in the library libcmtd.lib, was already defined in msvcrtd.lib, which is a stub for MSVCRTD.dll. The problem is that GATest.exe shouldn't be trying to link both libraries at the same time.

The first of those libraries, libcmtd, is used when you set the /MTd compiler option, which in the project settings dialog appear as "Multithreaded Debug" (or something similar, depending on the Visual Studio version you are using), and specifies you want to use the Runtime Library as a multithreaded static lib.

The second library, msvcrtd.lib, is used when you set the /MDd compiler option, which in the project settings dialog appear as "Multithreaded Debug DLL", and specifies you want to use the Runtime Library as a multithreaded dynamically linked library (DLL).

Now, my theory is that the project (or make file) you use to create the library is setting /MTd, and that conflicts with the setting in the GATest project, which is /MDd.

Thus, my suggestion is that you make sure both the lib and the exe use the same setting.




--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: need help about use lib Pin
Jose Lamas Rios14-Aug-05 19:35
Jose Lamas Rios14-Aug-05 19:35 
GeneralRe: need help about use lib Pin
Anuj Purwar10-Aug-05 21:23
Anuj Purwar10-Aug-05 21:23 
GeneralRe: need help about use lib Pin
Jose Lamas Rios10-Aug-05 21:43
Jose Lamas Rios10-Aug-05 21:43 
GeneralRe: need help about use lib Pin
hongmuer11-Aug-05 16:43
hongmuer11-Aug-05 16:43 
GeneralMFC Check Box Pin
Freddie Code10-Aug-05 16:19
Freddie Code10-Aug-05 16:19 
GeneralRe: MFC Check Box Pin
Christian Graus10-Aug-05 16:20
protectorChristian Graus10-Aug-05 16:20 
GeneralRe: MFC Check Box Pin
Jose Lamas Rios10-Aug-05 16:32
Jose Lamas Rios10-Aug-05 16:32 
GeneralRe: MFC Check Box Pin
Christian Graus10-Aug-05 16:54
protectorChristian Graus10-Aug-05 16:54 
GeneralRe: MFC Check Box Pin
Jose Lamas Rios10-Aug-05 17:17
Jose Lamas Rios10-Aug-05 17:17 
GeneralRe: MFC Check Box Pin
Freddie Code11-Aug-05 4:17
Freddie Code11-Aug-05 4:17 
General.NET COM Interop problem Pin
mpastchenko10-Aug-05 13:23
mpastchenko10-Aug-05 13:23 
GeneralRe: .NET COM Interop problem Pin
mpastchenko10-Aug-05 14:05
mpastchenko10-Aug-05 14:05 
GeneralRe: .NET COM Interop problem Pin
mpastchenko10-Aug-05 14:07
mpastchenko10-Aug-05 14:07 
GeneralRe: .NET COM Interop problem Pin
mpastchenko10-Aug-05 14:09
mpastchenko10-Aug-05 14:09 
GeneralRe: .NET COM Interop problem Pin
mpastchenko10-Aug-05 15:03
mpastchenko10-Aug-05 15:03 
GeneralRe: .NET COM Interop problem Pin
mpastchenko12-Aug-05 14:16
mpastchenko12-Aug-05 14:16 
GeneralDebug Assertion Failed! Pin
Orville10-Aug-05 12:42
Orville10-Aug-05 12:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.