Jump to content
  • Advertisement
Sign in to follow this  
proanim

#pragma warning doesn't work

This topic is 2181 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When linking static sfml libraries i get annoying LNK:4099 warning about missing PDB files. I tried using #pragma warning(disable:4099) works every 10 or so cleans/rebuilds. And I also tried to use #pragma comment(linker, "/ignore:4009") which also doesn't work - ever. How can I fix this? I tried placing #pragma in both *.cpp and *.h in case something funny was happening - but no difference. Is this specific warning for VS or is it present in all compilers?

Share this post


Link to post
Share on other sites
Advertisement

All error numbers reported by compilers and linkers are unique to those compilers and linkers, so while another linker may report a similar warning (likely not specifically about PDB files since those are specific to Visual Studio®) it would have a different number.

 

As for warning 4099, it cannot be ignored without patching link.exe with a hex editor.

 

http://bitsquid.blogspot.jp/2011/12/code-share-patch-linkexe-to-ignore.html

 

If you want to do it manually, you can look at that code and easily see that all it does is search for 3 unsigned shorts in a row: 4088, 4099, and 4105, and replaces them with 4088, 65535, and 4105, effectively removing 4099 from the exclusion list.  This can easily be done via any hex editor.  I use MHS.

 

 

L. Spiro

Edited by L. Spiro

Share this post


Link to post
Share on other sites

This probably doesn't help the OP, but why are the .PDB files missing? Aren't they included in the SFML release?

If not, try asking the developers why the files are missing - they need to realize that shipping .PDB files doesn't hurt their product at all.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!