User forums > Using Code::Blocks
Code::Blocks try to open .obj libs, but not .lib?
alt + 255:
First time I create a patch, I hope it will work... (it's for windows)
cacb:
--- Quote from: sodev on November 05, 2017, 07:39:03 pm ---There is no need to edit any XML file to use msvc compiler with CodeBlocks. You probably messed up something real good now, you better revert your changes.
--- End quote ---
This is wrong and misleading. The Code::Blocks configuration files & project files are indeed XML files. There is also GUI for editing configurations, but it is stored as XML.
I also use Code::Blocks with MSVC (currently MSVC2013). Attached is a summary of my setup for MSVC2013 using Code::Blocks global variables. I use a generic "MSVC" compiler in all my projects and just change the global variables when changing MSVC version. The names of the global variables are somewhat logical, but not 100%, but this setup works.
alt + 255:
Hum, everyone, this is cool that you try to help me, but you complicate the problem : my msvc compiler work (my configuration is similar to the configuration of cacb), the problem is just Code::Blocks (or I don't know what) who search a bad extention, this is probably just a parameter in an obscure menu, or a line in another .xml file...
sodev:
Post a full build log, im pretty sure its just a configuration error.
alt + 255:
Here is the full build log :
--- Code: (html) ----------------- Clean: Release in fil (compiler: Visual Studio 2017 compiler)---------------
Cleaned "fil - Release"
-------------- Build: Release in fil (compiler: Visual Studio 2017 compiler)---------------
[ 33.3%] cl.exe /nologo /EHsc /Ox -O2 -O2 /FS /DGLEW_STATIC /DSFML_STATIC /DWIN32 /D__GNUWIN32__ /DUNICODE -DGLEW_STATIC -DSFML_STATIC -DWIN32 -D__GNUWIN32__ -DUNICODE -IG:\WorkspaceC++\Bibliotheques\SFML-2.4.2\include -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt" -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include" /c C:\FourreTout\Syssy\TestFilGravite\prog\main.cpp /Fo.objsR\main.cpp.obj
[ 66.7%] rc.exe -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt" -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include" -fo.objsR\resources.rc.res C:\FOURRE~1\Syssy\TESTFI~1\prog\RESOUR~1.RC
[100.0%] link.exe /nologo /subsystem:windows /LIBPATH:G:\WorkspaceC++\Bibliotheques\SFML-2.4.2\lib /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x86" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x86" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\lib\x86" /out:..\fil.exe sfml-main sfml-system-s sfml-window-s sfml-network-s sfml-graphics-s sfml-audio-s openal32 jpeg freetype ws2_32 gdi32 opengl32 winmm FLAC ogg vorbis vorbisenc vorbisfile .objsR\main.cpp.obj .objsR\resources.rc.res
main.cpp
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'sfml-main.obj'
Process terminated with status 1181 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version