Vc++ lnk4089: all references to "shell32.dll" disc
3 posts
• Page 1 of 1
Vc++ lnk4089: all references to "shell32.dll" disc
in Vc++ 6 what does a warning stating:
lnk4089: all references to "shell32.dll" discarded by /opt:ref
mean?
- x0000000009
- Posts: 186
- Joined: Mon Aug 16, 2004 2:32 pm
- Location: mid-west
answering my own question:
this linker error means that im refrencing shell32.lib somewhere and i am not using it, so the compiler discards it for me. Only problem is the file size is unnecessarily big now. so now how do i get rid of the warning? The solution seems to be that under project/settings/ then the C++ tab, simply remove the /opt refrence but that refrence is not there to begin with. Under the link tab I am not linking to any library modules either... Maybe a .h #include statement would do this. but which one... this is a pretty big program.
- x0000000009
- Posts: 186
- Joined: Mon Aug 16, 2004 2:32 pm
- Location: mid-west
apperantly it was my own class that was causing this warning. I have a tray icon class that i had commented out any refrences to, even the #include statement, but left the .cpp and the .h file in the project. so why didn't the compiler tell me that the refrence to that particular class was the problem instead of telling me that it was shell32.dll problem? frustrating.
- x0000000009
- Posts: 186
- Joined: Mon Aug 16, 2004 2:32 pm
- Location: mid-west
3 posts
• Page 1 of 1
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 3 guests