Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » linking difficulties under msvc
linking difficulties under msvc [message #12430] Tue, 30 October 2007 11:39 Go to next message
lokki is currently offline  lokki
Messages: 20
Registered: November 2005
Promising Member
Hello,

I've got a problem. I'm using TheIDE with MSC8 build method (Microsoft Visual C++ Cool and need to link external library (FMOD) to my aplication.

libs/include directories are correctly set in Build method settings. External lirary is added in package organizer as well.

When FMOD functions and objects are part of U++ main window class (class generated by IDE at the begining of the project) everything works fine, and apllication is built OK.

But when I try to move FMOD functionality to external class (included in project) to separate it from GUI, I am receiving linking errors as stated below:

Error executing "C:\Program Files\Microsoft Visual Studio 8\Vc\Bin\link.exe" -nologo -machine:I386 -pdb:"D:\upp\out\MSC8.Debug_full.Gui\fmod
enginetest.pdb" -out:"D:\upp\out\MSC8.Debug_full.Gui\fmodenginetest.exe" -incremental:yes -debug -OPT:NOREF -subsystem:windows -LIBPATH:
"C:\Program Files\Microsoft Visual Studio 8\Vc\Lib" -LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib" -LIBPATH:"C
:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib" -LIBPATH:"D:\jk\lib\lib" "D:\upp\out\fmodenginetest\MS
C8.Debug_full.Gui.Main\playerengine.obj" "D:\upp\out\fmodenginetest\MSC8.Debug_full.Gui.Main\main.obj " "D:\upp\out\CtrlLib\MSC8.Debug_fu
ll.Gui\CtrlLib.obj" "D:\upp\out\CtrlLib\MSC8.Debug_full.Gui\$blitz.obj" "D:\upp\out\CtrlLib\MSC8.Debug_full.Gui\ChWin32.obj" "D:\upp\out
\CtrlCore\MSC8.Debug_full.Gui\CtrlCore.obj" "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\advapi32.lib" "C:\Pr
ogram Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\comdlg32.lib" "C:\Program Files\Microsoft Platform SDK for Windows Ser
ver 2003 R2\Lib\comctl32.lib" "D:\upp\out\CtrlCore\MSC8.Debug_full.Gui\$blitz.obj" "D:\upp\out\RichText\MSC8.Debug_full.Gui\RichImage.ob
j" "D:\upp\out\RichText\MSC8.Debug_full.Gui\$blitz.obj" "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\user32.l
ib" "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\gdi32.lib" "D:\upp\out\Draw\MSC8.Debug_full.Gui\$blitz.obj"
"C:\Program Files\Microsoft Visual Studio 8\Vc\Lib\kernel32.lib" "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
\user32.lib" "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\advapi32.lib" "C:\Program Files\Microsoft Platform
SDK for Windows Server 2003 R2\Lib\shell32.lib" "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\winmm.lib" "D:\u
pp\out\Core\MSC8.Debug_full.Gui\$blitz.obj" "D:\upp\out\Core\MSC8.Debug_full.Gui\OL_Set.obj" "D:\upp\out\plugin\bmp\MSC8.Debug_full.Gui\
BmpReg.obj" "D:\upp\out\plugin\bmp\MSC8.Debug_full.Gui\$blitz.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\adler32.obj" "D:\upp\out\plu
gin\z\MSC8.Debug_full.Gui\compress.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\crc32.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\def
late.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\gzio.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\infblock.obj" "D:\upp\out\plugin\z
\MSC8.Debug_full.Gui\infcodes.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\inffast.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\inflat
e.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\inftrees.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\infutil.obj" "D:\upp\out\plugin\z
\MSC8.Debug_full.Gui\trees.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\uncompr.obj" "D:\upp\out\plugin\z\MSC8.Debug_full.Gui\zutil.obj
" "D:\upp\out\plugin\png\MSC8.Debug_full.Gui\pngreg.obj" "D:\upp\out\plugin\png\MSC8.Debug_full.Gui\pnglib.obj" "D:\upp\out\plugin\png\M
SC8.Debug_full.Gui\pngupp.obj" "D:\jk\lib\lib\fmodex_vc.lib"
Exitcode: 1120
Re: linking difficulties under msvc [message #12434 is a reply to message #12430] Tue, 30 October 2007 15:22 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Quote:

Error executing ...


That's not very descriptive Error message. :/
Try to run that command line from cmd.exe in the project directory, maybe you will get some reason why the execution of linking step failed.

Are there some unreferenced symbols, or does it simply exit with failure??
Re: linking difficulties under msvc [message #12435 is a reply to message #12434] Tue, 30 October 2007 15:41 Go to previous message
lokki is currently offline  lokki
Messages: 20
Registered: November 2005
Promising Member
Yes, there were some unreferenced symbols, but... Razz

Problem is now solved and wasn't caused by bad package configuration or missing link options. Bad member function implementation caused linker error.

Sorry for useless thread.
Previous Topic: Problems with debugging in TheIDE (mingw)
Next Topic: missing library - linking error
Goto Forum:
  


Current Time: Thu Mar 28 21:58:07 CET 2024

Total time taken to generate the page: 0.01608 seconds