A Digital Age Deserves A Digital Leader

Vc++ lnk4089: all references to "shell32.dll" disc

Vc++ lnk4089: all references to "shell32.dll" disc

Postby x0000000009 » Wed Aug 18, 2004 6:24 pm

in Vc++ 6 what does a warning stating:
lnk4089: all references to "shell32.dll" discarded by /opt:ref

mean?
PRO Level 5
Posts: 186
Joined: Mon Aug 16, 2004 2:32 pm
Location: mid-west

Postby x0000000009 » Wed Aug 18, 2004 7:30 pm

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.
PRO Level 5
Posts: 186
Joined: Mon Aug 16, 2004 2:32 pm
Location: mid-west

Postby x0000000009 » Wed Aug 18, 2004 8:02 pm

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.
PRO Level 5
Posts: 186
Joined: Mon Aug 16, 2004 2:32 pm
Location: mid-west

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 3 guests

cron
cron