Advertisement

SFML How are Symbols Loaded?

Started by October 01, 2017 12:09 AM
3 comments, last by jpetrie 7 years, 2 months ago

I am getting the message : <information not available, no symbols loaded for  sfml-graphics-d-2.dll> when hovering over the sf::Text object name for Visual C++ using Visual Studio (SFML).  I am wondering how do I load the symbols so I can view the text object's text for example? 

 

Thank you,

Josheir

You need a .pdb file in your working directory. You should check your library for a debug symbol download or if you compiled it yourself, locate the .pdb and copy to your working dir.

Advertisement
Just now, h8CplusplusGuru said:

if you compiled it yourself, locate the .pdb and copy to your working dir.

Well I am using someone else's library and dll (SFML's,) so I don't know if this applies to me.  I did look for evidence for what you said and located the following pdbs that were created by the IDE upon my build.  They are :  textbox.pdb and vc141.db.  These are for my textbox project and they seem to already be in the correct debug library with the executable and the dlls.

 

When I put the pdb called sfml-graphics-d.lib into this directory there is a change in the sf:text's  'readout in the IDE when debugging.'  No more pesky "symbols haven't been loaded,"  However there is still no readable display of the length or actual text.

 

The dll is numbered 2 and the pdb I am using is apparently for the first dll.  So, is there a solution?,  I have had to display to the screen in a separate rendering window to see the values and debug things.  I have found no specific pdbs/downloads for the library I am mentioning.

 

Sincerely and thankfully,

Josheir

 

 

On 10/7/2017 at 4:23 PM, Josheir said:

Well I am using someone else's library and dll (SFML's,) so I don't know if this applies to me. 

It does. You need the .pdb files for the SFML binaries you are using. You either need to get them from the same place you got the binaries, or you need to recompile SFML yourself in order to generate them.

On 10/7/2017 at 4:23 PM, Josheir said:

I did look for evidence for what you said and located the following pdbs that were created by the IDE upon my build.  They are :  textbox.pdb and vc141.db.  These are for my textbox project and they seem to already be in the correct debug library with the executable and the dlls.

Those sound like the .pdbs generated for your code. They will not help you with SFML.

On 10/7/2017 at 4:23 PM, Josheir said:

When I put the pdb called sfml-graphics-d.lib

A PDB file should have a .pdb extension. That doesn't look like it's actually a PDB file. It also has to match the binary of the SFML library; you can't neccessarily just grab some other random SFML .pdb, say, from a game that uses SFML and shipped it for some reason, and drop it in to your project. They won't match.

Get the PDBs from the source you got the SFML library from. If they aren't supplied, build the library yourself.

This topic is closed to new replies.

Advertisement