OpenDocumentFile(NULL) has problem
-
Hello all, I have a big problem and I don't know why. Here is my problem: I have a large project with unicode supported. When I build it as Debug configuration, everything is OK and my app runs correctly. When I build it as Release configuration, the linker complains: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library. I ignore these warnings and try to run my app. Then, my app hangs when calling OpenDocumentFile(NULL). I really don't know why the linker uses *d.lib during the linking process. After that I use /NODEFAULTLIB to ignore these lib and the linker complain again: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library I ignore these warning and try to run my app. Then, my app cause a DEBUG ASSERTION. It is so STRANGE because I build my app under Release mode. Please give me some ideas. Thanks in advance.
-
Hello all, I have a big problem and I don't know why. Here is my problem: I have a large project with unicode supported. When I build it as Debug configuration, everything is OK and my app runs correctly. When I build it as Release configuration, the linker complains: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library. I ignore these warnings and try to run my app. Then, my app hangs when calling OpenDocumentFile(NULL). I really don't know why the linker uses *d.lib during the linking process. After that I use /NODEFAULTLIB to ignore these lib and the linker complain again: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library I ignore these warning and try to run my app. Then, my app cause a DEBUG ASSERTION. It is so STRANGE because I build my app under Release mode. Please give me some ideas. Thanks in advance.
blongtq wrote:
LINK : warning LNK4098: defaultlib "mfc42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library