User forums > General (but related to Code::Blocks)

Import a mvs2012 solution

(1/5) > >>

patrocle:
Hello guys,

I try to import and build a working soltion from MSV 2012 (already installated into current pc with win10). After I set up lot of things, now I'm stuck here, with some libs:

http://prntscr.com/f4xjva




in pic we can see the lib is not missing, the gmp.lib
please some advices
 

in msv2012 all fine http://prntscr.com/f4xryb

BlueHazzard:
your post does not contain all information needed...
read first this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

what compiler are you using? Is it the same compiler as the library?

patrocle:
i'm sorry,
compiler settings: http://prntscr.com/f4zfxt
                             http://prntscr.com/f4zh9c
and this distro: https://nuwen.net/mingw.html the last (14.1) mean GCC 6.3.0 and Boost 1.63.0.


--- Code: ----------------- Clean: Release MySQL Win32 in BNCSutil (compiler: GNU GCC Compiler)---------------

Cleaned "BNCSutil - Release MySQL Win32"

-------------- Build: Release MySQL Win32 in BNCSutil (compiler: GNU GCC Compiler)---------------

g++.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -std=c++98 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\bsha1.cpp -o .objs\src\bncsutil\bsha1.o
g++.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -std=c++98 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\cdkeydecoder.cpp -o .objs\src\bncsutil\cdkeydecoder.o
g++.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -std=c++98 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\checkrevision.cpp -o .objs\src\bncsutil\checkrevision.o
g++.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -std=c++98 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\decodekey.cpp -o .objs\src\bncsutil\decodekey.o
g++.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -std=c++98 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\file.cpp -o .objs\src\bncsutil\file.o
g++.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -std=c++98 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\libinfo.cpp -o .objs\src\bncsutil\libinfo.o
gcc.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\nls.c -o .objs\src\bncsutil\nls.o
g++.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -std=c++98 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\oldauth.cpp -o .objs\src\bncsutil\oldauth.o
gcc.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\pe.c -o .objs\src\bncsutil\pe.o
gcc.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\sha1.c -o .objs\src\bncsutil\sha1.o
gcc.exe -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DBNCSUTIL_EXPORTS -DMOS_WINDOWS -O3 -Iinclude -Iatlmfc\include -I -IC:\5entbot\bncsutil\vc8_build -I..\src -IC:\MinGW\lib -IC:\MinGW\include -IC:\5entbot\libGeoIP -IC:\5entbot\mysql\lib\opt -IC:\5entbot\bncsutil\src\bncsutil -IC:\5entbot\bncsutil\vc8_build -I"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -c C:\5entbot\bncsutil\src\bncsutil\stack.c -o .objs\src\bncsutil\stack.o
g++.exe -LC:\5entbot\bncsutil\vc8_build -L..\src -Llib -Latlmfc\lib -L -L.. -LC:\5entbot\mysql\lib\opt -LC:\5entbot\bncsutil\vc8_build -LC:\5entbot\bncsutil\src\bncsutil -o BNCSutil.exe .objs\src\bncsutil\bsha1.o .objs\src\bncsutil\cdkeydecoder.o .objs\src\bncsutil\checkrevision.o .objs\src\bncsutil\decodekey.o .objs\src\bncsutil\file.o .objs\src\bncsutil\libinfo.o .objs\src\bncsutil\nls.o .objs\src\bncsutil\oldauth.o .objs\src\bncsutil\pe.o .objs\src\bncsutil\sha1.o .objs\src\bncsutil\stack.o   -lkernel32.lib -lversion.lib -lgmp.lib C:\5entbot\libGeoIP\GeoIP.lib C:\5entbot\libGeoIP\WS2_32.Lib C:\5entbot\mysql\lib\opt\libmysql.lib C:\5entbot\zlib\lib\zdll.lib C:\5entbot\bncsutil\vc8_build\gmp.lib "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\Kernel32.Lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\Version.Lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64\kernel32.Lib" -mwindows
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lkernel32.lib
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lversion.lib
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgmp.lib
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 2 second(s))
4 error(s), 0 warning(s) (0 minute(s), 2 second(s))
 

--- End code ---

stahta01:

--- Code: ---c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lkernel32.lib
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lversion.lib
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgmp.lib

--- End code ---

Did you try the normal fix of changing the library names?

From

--- Code: ---kernel32.lib
version.lib
gmp.lib

--- End code ---

to


--- Code: ---kernel32
version
gmp

--- End code ---

Tim S.


BlueHazzard:
to get more information you also can add the "-v" option to compiler and linker and post the build log here

Navigation

[0] Message Index

[#] Next page

Go to full version