[Insight-users] link problem and CMake Questions
salah
salah at gris.uni-tuebingen.de
Thu, 11 Mar 2004 19:44:26 +0100
Hello all,
I have configured a project using Cmake 1.8.3. I have few questions =
please:
1. How can I tell the project to link to the FLTK libraries: basic, =
forms, gl, and images and take the names given with the cmake GUI?=20
2. I gave the names of these libraries explicitly in the CMakeList.txt =
file, and then builts the project using MS VS 7.0. I have got the below =
listed result. Coul you please tell me what the problem could be? BTW, I =
use flrk-1.1.4 which was built successfully.
3. how can (in cmake) create a folder for some header files, same as =
that created automatically for the sources?
4. last question: while configuring the project using cmake, can I avoid =
resulting the ALL_BUILD project? i.e. can I create workspace containing =
only my own project? Is there a benefit from this ALL_BUILD?
Thanks,
Zein
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
------ Build started: Project: Masto16, Configuration: Debug Win32 =
------
Compiling...
MastoidGUI.cxx
main.cpp
MastoidBase.cpp
Mastoid.cpp
SegmentationViewerGUI.cpp
RegionExtractorGUI.cpp
ImageCutEditGUI.cpp
Generating Code...
Linking...
Creating library Debug\Masto16.lib and object Debug\Masto16.exp
fltkd.lib(Fl_x.obj) : error LNK2019: unresolved external symbol =
___WSAFDIsSet at 8 referenced in function "int __cdecl fl_wait(double)" =
(?fl_wait at at YAHN at Z)
fltkd.lib(Fl_x.obj) : error LNK2019: unresolved external symbol =
_select at 20 referenced in function "int __cdecl fl_wait(double)" =
(?fl_wait at at YAHN at Z)
fltkd.lib(Fl_x.obj) : error LNK2019: unresolved external symbol =
__imp___TrackMouseEvent at 4 referenced in function "long __stdcall =
WndProc(struct HWND__ *,unsigned int,unsigned int,long)" =
(?WndProc at at YGJPAUHWND__ at at IIJ at Z)
Debug\Masto16.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at =
"file://d:\ZeinApplications-BIN\Masto16\Debug\BuildLog.htm"
Masto16 - 4 error(s), 0 warning(s)
------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 =
------
Performing Post-Build Event...
"Build all projects"
Build log was saved at =
"file://d:\ZeinApplications-BIN\Debug\BuildLog.htm"
ALL_BUILD - 0 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 1 succeeded, 1 failed, 0 skipped