Click here to Skip to main content
15,902,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Parent window jumps after click on List Control Pin
sharel@emc.com19-Aug-02 11:41
susssharel@emc.com19-Aug-02 11:41 
GeneralRe: Parent window jumps after click on List Control Pin
Renjith Ramachandran19-Aug-02 10:26
Renjith Ramachandran19-Aug-02 10:26 
GeneralRe: Parent window jumps after click on List Control Pin
Sharel19-Aug-02 11:36
Sharel19-Aug-02 11:36 
GeneralPhilosophically simple but... Pin
Kash19-Aug-02 6:47
Kash19-Aug-02 6:47 
GeneralRe: Philosophically simple but... Pin
Tomasz Sowinski19-Aug-02 7:07
Tomasz Sowinski19-Aug-02 7:07 
GeneralRe: Philosophically simple but... Pin
Kash19-Aug-02 11:57
Kash19-Aug-02 11:57 
GeneralRe: Philosophically simple but... Pin
Tomasz Sowinski19-Aug-02 21:50
Tomasz Sowinski19-Aug-02 21:50 
GeneralLinking a non-MFC lib to an MFC project Pin
Navin19-Aug-02 6:00
Navin19-Aug-02 6:00 
I have some C++ code that uses STL, some Windows APIs, but not MFC. This code is in several files and compiles into a static libary.

I am trying to link the .lib file with an MFC (static-likned) console app project. When I compile and link, I get many multiply-defined symbol errors (they are appended below.)

I know this can be done, but I'm missing something.. any ideas? Confused | :confused:

Linking...
LIBCD.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __exit already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __cexit already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __environ already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: ___argv already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: ___argc already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __winminor already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __winver already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __osver already defined in libcmtd.lib(crt0dat.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in libcmtd.lib(crt0dat.obj)
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/Harness.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.



You are special and unique, just like everyone else.
GeneralRe: Linking a non-MFC lib to an MFC project Pin
Tomasz Sowinski19-Aug-02 6:05
Tomasz Sowinski19-Aug-02 6:05 
GeneralRe: Linking a non-MFC lib to an MFC project Pin
Navin19-Aug-02 6:56
Navin19-Aug-02 6:56 
QuestionWhat is the Definative Book on C++. Pin
Raskolnikov19-Aug-02 5:45
Raskolnikov19-Aug-02 5:45 
AnswerRe: What is the Definative Book on C++. Pin
Tomasz Sowinski19-Aug-02 5:53
Tomasz Sowinski19-Aug-02 5:53 
AnswerRe: What is the Definative Book on C++. Pin
valikac19-Aug-02 6:27
valikac19-Aug-02 6:27 
GeneralRe: What is the Definative Book on C++. Pin
Trollslayer19-Aug-02 6:43
mentorTrollslayer19-Aug-02 6:43 
GeneralRe: What is the Definative Book on C++. Pin
Tomasz Sowinski19-Aug-02 6:45
Tomasz Sowinski19-Aug-02 6:45 
GeneralRe: What is the Definative Book on C++. Pin
Raskolnikov19-Aug-02 11:54
Raskolnikov19-Aug-02 11:54 
AnswerRe: What is the Definative Book on C++. Pin
Stuart Dootson19-Aug-02 8:33
professionalStuart Dootson19-Aug-02 8:33 
GeneralMFC Assertion Failures Pin
gm_coll19-Aug-02 5:34
gm_coll19-Aug-02 5:34 
GeneralRe: MFC Assertion Failures Pin
Tomasz Sowinski19-Aug-02 5:36
Tomasz Sowinski19-Aug-02 5:36 
GeneralRe: MFC Assertion Failures Pin
gm_coll19-Aug-02 6:07
gm_coll19-Aug-02 6:07 
GeneralRe: MFC Assertion Failures Pin
Tomasz Sowinski19-Aug-02 6:14
Tomasz Sowinski19-Aug-02 6:14 
GeneralRe: MFC Assertion Failures Pin
Mustafa Demirhan19-Aug-02 13:33
Mustafa Demirhan19-Aug-02 13:33 
GeneralRe: MFC Assertion Failures Pin
gm_coll19-Aug-02 23:51
gm_coll19-Aug-02 23:51 
GeneralRe: MFC Assertion Failures Pin
gm_coll20-Aug-02 4:56
gm_coll20-Aug-02 4:56 
GeneralRe: MFC Assertion Failures Pin
Mustafa Demirhan20-Aug-02 9:03
Mustafa Demirhan20-Aug-02 9:03 

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.