[FLASH-USERS] error LNK2019: unresolved external symbol (issue with leading underscore with symbols in library)
Kunal Rao
kunalgrao at gmail.com
Sun Jul 25 14:54:44 EDT 2010
Hello
I am trying to link the FLASH 3.2 code with the HDF 5 library build with
CMAKE and using Visual Studio 9 2008 as the generator.
I am trying to link it through the PGI cygwin environment.
The error that I am getting is:
-----------------
io_h5file_interface.o : error LNK2019: unresolved external symbol
H5check_version referenced in function io_h5init_file_
-----------------
When I do:
$dumpbin.exe /SYMBOLS io_h5file_interface.o
I see the following in the output:
-----------------
020 00000000 SECT1 notype () External | io_h5init_file_
021 00000000 UNDEF notype External | H5check_version
-----------------
And when I check for the symbols in the hdf5 library using:
$dumpbin.exe /SYMBOLS vtkhdf5.lib
I see the following in the output:
-----------------
322 00001CE0 SECT6 notype () External | _H5check_version
-----------------
Note the leading underscore with _H5check_version. The symbol is present in
the library but has a leading underscore.
There are many other such unresolved external symbol errors. All the symbols
in the object files they are without the leading underscore and in the
library they are with the leading underscore. May be this is why I am
getting the unresolved external symbol error.
Can you please suggest something to resolve this issue ?
Thanks & Regards,
Kunal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20100725/98ab65a8/attachment.htm>
More information about the flash-users
mailing list