C
cmiddlebrook
Greetings all,
I have a class which contains a function with the following signature:
MC_SDLImage* LoadImage(const std::string& file, int id);
and I call this function in two places in my code. For one of the calls
I am getting an unresolved external but it refers to the function as
"LoadImageA", notice the capital A on the end. Usually I can fix linker
errors pretty quickly but this one stumped me. In the end I tried
something weird... I changed the name of my function to be LoadImageA.
Now the call that was failing compiled, and the other call failed so I
had to change it to call LoadImageA and not LoadImage.
So I have two places in my code that call this function, ine one place
it calls it LoadImage and somewhere else it calls it LoadImageA. I was
pretty sure this was going to crash horribly once I was able to execute
it but it all works! This is the most bizarre thing I have ever seen
and I'm not comfortable with it at all!
Can anyone shed any light on this mystery? Many Thanks,
Caroline M.
I have a class which contains a function with the following signature:
MC_SDLImage* LoadImage(const std::string& file, int id);
and I call this function in two places in my code. For one of the calls
I am getting an unresolved external but it refers to the function as
"LoadImageA", notice the capital A on the end. Usually I can fix linker
errors pretty quickly but this one stumped me. In the end I tried
something weird... I changed the name of my function to be LoadImageA.
Now the call that was failing compiled, and the other call failed so I
had to change it to call LoadImageA and not LoadImage.
So I have two places in my code that call this function, ine one place
it calls it LoadImage and somewhere else it calls it LoadImageA. I was
pretty sure this was going to crash horribly once I was able to execute
it but it all works! This is the most bizarre thing I have ever seen
and I'm not comfortable with it at all!
Can anyone shed any light on this mystery? Many Thanks,
Caroline M.