Author Topic: Linking Errors while Compiling Visual Studio 2003 Projects  (Read 3286 times)

Offline Muffin

  • Single posting newcomer
  • *
  • Posts: 5
Linking Errors while Compiling Visual Studio 2003 Projects
« on: November 05, 2005, 07:59:59 pm »
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?

Quote
Project   : 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
« Last Edit: November 05, 2005, 08:01:56 pm by Muffin »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: Linking Errors while Compiling Visual Studio 2003 Projects
« Reply #1 on: November 05, 2005, 08:28:13 pm »
Just add advapi32.lib in link libraries (Project->Build options->Linker->Link libraries)
Be patient!
This bug will be fixed soon...

Offline Muffin

  • Single posting newcomer
  • *
  • Posts: 5
Re: Linking Errors while Compiling Visual Studio 2003 Projects
« Reply #2 on: November 05, 2005, 08:49:29 pm »
Quote
Switching 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.