vrltwe
13th October 2013, 18:16
I'm trying to use the CCfits library in a Qt Creator project in Windows 7 32 bits. Please find the files appended.
I builded the libs (CCfits depends on CFITSIO) from source and I actually can build and run a VS sample project which comes with CCfits, which is found in the cookbook folder of CCfits.
The problem is how to run the same project on Qt Creator. I'm assuming that if it runs on VS it must be possible to run in Qt Creator (using the MSVC compiler).
I installed the following packets:
- Visual Studio Express 2008
- qt-win-opensource-4.8.5-vs2008
- Windows kit 8
- qt-creator-windows-opensource-2.8.1
The following is part of the compile output, which presents "already defined" issue:
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: unsigned short * __thiscall std::allocator<unsigned short>::allocate(unsigned int)" (?allocate@?$allocator@G@std@@QAEPAGI@Z) already defined in CCfits.lib(ColumnCreator.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::allocator<unsigned short>::deallocate(unsigned short *,unsigned int)" (?deallocate@?$allocator@G@std@@QAEXPAGI@Z) already defined in CCfits.lib(ColumnCreator.obj)
release\CCfits-test.exe : fatal error LNK1169: one or more multiply defined symbols found
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.EXE"' : return code '0x491'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
13:36:24: The process "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" exited with code 2.
Error while building/deploying project CCfits-test (kit: MSVC2008)
When executing step 'Make'
I would like to ask how to procced in order to solve this problem. Any suggestion will be appreciated.
Thanks in advance.
9692
9691
I builded the libs (CCfits depends on CFITSIO) from source and I actually can build and run a VS sample project which comes with CCfits, which is found in the cookbook folder of CCfits.
The problem is how to run the same project on Qt Creator. I'm assuming that if it runs on VS it must be possible to run in Qt Creator (using the MSVC compiler).
I installed the following packets:
- Visual Studio Express 2008
- qt-win-opensource-4.8.5-vs2008
- Windows kit 8
- qt-creator-windows-opensource-2.8.1
The following is part of the compile output, which presents "already defined" issue:
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: unsigned short * __thiscall std::allocator<unsigned short>::allocate(unsigned int)" (?allocate@?$allocator@G@std@@QAEPAGI@Z) already defined in CCfits.lib(ColumnCreator.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::allocator<unsigned short>::deallocate(unsigned short *,unsigned int)" (?deallocate@?$allocator@G@std@@QAEXPAGI@Z) already defined in CCfits.lib(ColumnCreator.obj)
release\CCfits-test.exe : fatal error LNK1169: one or more multiply defined symbols found
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.EXE"' : return code '0x491'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
13:36:24: The process "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" exited with code 2.
Error while building/deploying project CCfits-test (kit: MSVC2008)
When executing step 'Make'
I would like to ask how to procced in order to solve this problem. Any suggestion will be appreciated.
Thanks in advance.
9692
9691