News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Linking Errors while Compiling Visual Studio 2003 Projects

Started by Muffin, November 05, 2005, 07:59:59 PM

Previous topic - Next topic

Muffin

I followed the nice Visual Toolkit Integration Tutorial and tried to compile Gammu a free GSM toolkit. Codeblocks 1.0 RC2 imports the .vcproj file without errors and compiles the units but in the end I always get linking errors. The developer uses the original Microsoft Visual Studio 2003 so he can not help me, can you?

QuoteProject   : gammudll
Compiler  : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : D:\gammu-1.03.07\win32\dll\msvc2003.mak\
--------------------------------------------------------------------------------
Switching to target: Release
Linking dynamic library: .\Release\gammu.dll
ser_w32.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _serial_open
ser_w32.obj : error LNK2019: unresolved external symbol __imp__RegEnumValueA@32 referenced in function _serial_open
ser_w32.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _serial_open
.\Release\gammu.dll : fatal error LNK1120: 3 unresolved externals
Process terminated with status 1 (0 minutes, 0 seconds)
4 errors, 0 warnings

mandrav

Just add advapi32.lib in link libraries (Project->Build options->Linker->Link libraries)
Be patient!
This bug will be fixed soon...

Muffin

QuoteSwitching to target: Release
Linking dynamic library: Gammu.dll
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings

Great thanks. You already answered the same question, I am sorry. I searched for the wrong keywords.