-
May 11th, 2004, 09:24 AM
#1
LNK4089 again
LINK : warning LNK4089: all references to "comdlg32.dll" discarded by /OPT:REF
I search all post in this forum "LNK4089" and find many posts
Sorry but i don't still understand how i can fix this warning.
Many expert says at don't care this warning, but my linking process take lot of time.
So i really need fix this.
Settings / link tab i select 'link incrementally
and i don't see any library here
i write '#pragma comment(linker, "/IGNORE:4089")'
In microsoft msdn library /VERBOSE how i use it ?
hopely somebody help my, because this build process is very slow.
-
May 11th, 2004, 10:11 AM
#2
Most likely you are referencing a comctl32 function in your code, but never reaching it in callable code, thus it gets discarded during release builds...when the build does link optimization.
Turn on the print progress message on the linker options, then look and see where you are referencing a comctl32 function call and not using it.
-
May 12th, 2004, 01:47 AM
#3
Thanks, i get follow print:
Searching C:\Program Files\Microsoft Visual Studio\VC98\LIB\comctl32.lib:
Found __imp__ImageList_GetIcon@12
Referenced in PrintListCtrl.obj
Loaded comctl32.lib(COMCTL32.dll)
Found __IMPORT_DESCRIPTOR_COMCTL32
Referenced in comctl32.lib(COMCTL32.dll)
Loaded comctl32.lib(COMCTL32.dll)
Found COMCTL32_NULL_THUNK_DATA
Referenced in comctl32.lib(COMCTL32.dll)
Loaded comctl32.lib(COMCTL32.dll)
and warnings:
LINK : warning LNK4089: all references to "comdlg32.dll" discarded by /OPT:REF
Discarded __setmbcp from msvcrt.lib(MSVCRT.dll)
Discarded _ImageList_GetIcon@12 from comctl32.lib(COMCTL32.dll)
Discarded ".idata$6" from comdlg32.lib(comdlg32.dll)
Discarded ".idata$4" from comdlg32.lib(comdlg32.dll)
Discarded __imp__PrintDlgA@4 from comdlg32.lib(comdlg32.dll)
Discarded _PrintDlgA@4 from comdlg32.lib(comdlg32.dll)
Discarded ".idata$6" from comdlg32.lib(comdlg32.dll)
Discarded ".idata$4" from comdlg32.lib(comdlg32.dll)
Discarded __imp__CommDlgExtendedError@0 from comdlg32.lib(comdlg32.dll)
Discarded _CommDlgExtendedError@0 from comdlg32.lib(comdlg32.dll)
in PrintListCtrl.cpp i have follow libraries:
#include <commctrl.h>
#include <commdlg.h>
removing not help
at the beginning i insert monthcalctrl in my project, and this not work in debug mode. But in release mode all works fine but build process is slow and this warning occurrenc.
-
May 12th, 2004, 09:15 AM
#4
Yea...
Lets deal with the debug issue first, and get your project in working order, what does not work in debug?
at the beginning i insert monthcalctrl in my project, and this not work in debug mode. But in release mode all works fine but build process is slow and this warning occurrenc.
you might also want to use /DELAYLOAD for COMCTL32
But your build being slow can be any number of factors.
1. Mis use of pre-compiled headers, or not using at all.
2. Anti-virus software running while building.
3. redundant header includes
etc etc...
Also how large is your project? If it's not all that big and you can do a clean then a .zip and post it here, I can take a look and see what things you might change to improve the peformance.
-
May 12th, 2004, 02:15 PM
#5
Originally posted by Mick
Yea...
Lets deal with the debug issue first, and get your project in working order, what does not work in debug?
Clicking calendar control and GetCurrentTime() does not work and application crash in debug.
All works fine in release but building is slow and cpu usage was 100 % all this time
I reinstalling visual studio and now application works fine in debug.
What is different ?
I send code if problem repeat.
Thank help and thank this forum
-
May 12th, 2004, 02:20 PM
#6
I think if you could attach the code, myself and others could maybe give you more insight, there are too many factors to say this or that...
-
May 12th, 2004, 02:49 PM
#7
Originally posted by Mick
I think if you could attach the code, myself and others could maybe give you more insight, there are too many factors to say this or that...
You are right, here is code but this is workspace is too big (over 1 M)
I zip my .cpp and .h files
Last edited by Kivju; May 12th, 2004 at 03:15 PM.
-
May 12th, 2004, 03:10 PM
#8
Originally posted by Kivju
You are right, here is code but this is workspace is too big (over 1 M)
I zip my .cpp and .h files
the huh? .dsw or .dsp is what? sorry not on a 10+ million line of code kinda project right now, but even so, I don't recall the .dsw or .dsp being a meg in size...so I am not sure what you are talking about, even the source for the above, doesn't extend to that level...
-
May 12th, 2004, 03:20 PM
#9
I know, but how i send this workspace here ?
I can send directly with email ?
-
May 12th, 2004, 03:26 PM
#10
Try this:
Close Visual Studio.
Open Project.
Set Build Configuration to Debug.
Choose Clean from build menu.
Save and close Visual Studio.
Open Project.
Set Build Configuration to Release.
Choose Clean from build menu.
Save and close Visual Studio.
Repeat for any other build configurations you may have.
Sometimes clean doesn't work right, and that seems to work for me. Se if that reduces the size of your workspace.
-
May 12th, 2004, 03:28 PM
#11
the browser files .bsc (big boys) don't get cleaned...remove them...
-
May 12th, 2004, 11:17 PM
#12
vBulletin Message
The file that you have tried to attach is too big. The maximum size is 102400 bytes.
No, my minium size of attach is 831 000 bytes.
Sorry, i don't mean Mb but Kb.
-
May 13th, 2004, 03:46 AM
#13
Originally posted by Kivju
vBulletin Message
The file that you have tried to attach is too big. The maximum size is 102400 bytes.
No, my minium size of attach is 831 000 bytes.
Sorry, i don't mean Mb but Kb.
I sent you my email in a PM earlier, I really would rather have the complete project so I can look at what settings you have on etc.
-
May 13th, 2004, 05:03 AM
#14
trimmed project....
suvinenview.cpp appears to be todays winner...
-
May 13th, 2004, 05:20 AM
#15
Thank you
You insert
#include <windows.h>
I have still same problems in release, but debug works fine
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|