• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ Compiling with CodeBlocks

Helliot1

Owner of Empire Online
Joined
Jul 26, 2017
Messages
315
Solutions
1
Reaction score
60
Hello, I always compiled in Visual Basic, but how I need DirectX 9 in cliente, i was trying to compile in CodeBlocks, and I found this error:

anyone knows how to resolve this ?

C++:
-------------- Clean: all in otclient (compiler: GNU GCC Compiler)---------------

Executing clean command: C:/MinGW/bin/mingw32-make.exe -f "C:/Compilado no CodeBlocks/Makefile"  VERBOSE=1 clean
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 clean
mingw32-make.exe[1]: Entering directory 'C:/Compilado no CodeBlocks'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/clean
mingw32-make.exe[2]: Entering directory 'C:/Compilado no CodeBlocks'
C:\CMake\bin\cmake.exe -P CMakeFiles\otclient.dir\cmake_clean.cmake
mingw32-make.exe[2]: Leaving directory 'C:/Compilado no CodeBlocks'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\run.dir\build.make CMakeFiles/run.dir/clean
mingw32-make.exe[2]: Entering directory 'C:/Compilado no CodeBlocks'
C:\CMake\bin\cmake.exe -P CMakeFiles\run.dir\cmake_clean.cmake
mingw32-make.exe[2]: Leaving directory 'C:/Compilado no CodeBlocks'
mingw32-make.exe[1]: Leaving directory 'C:/Compilado no CodeBlocks'
Cleaned "otclient - all"

-------------- Build: all in otclient (compiler: GNU GCC Compiler)---------------

Checking if target is up-to-date: mingw32-make.exe -q -f Makefile all
Running command: C:/MinGW/bin/mingw32-make.exe -f "C:/Compilado no CodeBlocks/Makefile"  VERBOSE=1 all
C:\CMake\bin\cmake.exe -H"C:\OTCliente 2" -B"C:\Compilado no CodeBlocks" --check-build-system CMakeFiles\Makefile.cmake 0
C:\CMake\bin\cmake.exe -E cmake_progress_start "C:\Compilado no CodeBlocks\CMakeFiles" "C:\Compilado no CodeBlocks\CMakeFiles\progress.marks"
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory 'C:/Compilado no CodeBlocks'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/depend
mingw32-make.exe[2]: Entering directory 'C:/Compilado no CodeBlocks'
[  0%] Generating otcicon.o
C:\MinGW\bin\windres.exe "-IC:/OTCliente 2/src" "-iC:/OTCliente 2/src/otcicon.rc" -o "C:/Compilado no CodeBlocks/otcicon.o"
gcc: error: 2/src: No such file or directory
C:\MinGW\bin\windres.exe: preprocessing failed.
mingw32-make.exe[2]: *** [otcicon.o] Error 1
CMakeFiles\otclient.dir\build.make:60: recipe for target 'otcicon.o' failed
mingw32-make.exe[2]: Leaving directory 'C:/Compilado no CodeBlocks'
mingw32-make.exe[1]: *** [CMakeFiles/otclient.dir/all] Error 2
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/otclient.dir/all' failed
mingw32-make.exe[1]: Leaving directory 'C:/Compilado no CodeBlocks'
mingw32-make.exe: *** [all] Error 2
C:/Compilado no CodeBlocks/Makefile:128: recipe for target 'all' failed
Process terminated with status 2 (0 minute(s), 2 second(s))
5 error(s), 0 warning(s) (0 minute(s), 2 second(s))
 
Solution
Hello, I always compiled in Visual Basic, but how I need DirectX 9 in cliente, i was trying to compile in CodeBlocks, and I found this error:

anyone knows how to resolve this ?

C++:
-------------- Clean: all in otclient (compiler: GNU GCC Compiler)---------------

Executing clean command: C:/MinGW/bin/mingw32-make.exe -f "C:/Compilado no CodeBlocks/Makefile"  VERBOSE=1 clean
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 clean
mingw32-make.exe[1]: Entering directory 'C:/Compilado no CodeBlocks'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/clean
mingw32-make.exe[2]: Entering directory 'C:/Compilado no CodeBlocks'
C:\CMake\bin\cmake.exe -P CMakeFiles\otclient.dir\cmake_clean.cmake...
Hello, I always compiled in Visual Basic, but how I need DirectX 9 in cliente, i was trying to compile in CodeBlocks, and I found this error:

anyone knows how to resolve this ?

C++:
-------------- Clean: all in otclient (compiler: GNU GCC Compiler)---------------

Executing clean command: C:/MinGW/bin/mingw32-make.exe -f "C:/Compilado no CodeBlocks/Makefile"  VERBOSE=1 clean
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 clean
mingw32-make.exe[1]: Entering directory 'C:/Compilado no CodeBlocks'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/clean
mingw32-make.exe[2]: Entering directory 'C:/Compilado no CodeBlocks'
C:\CMake\bin\cmake.exe -P CMakeFiles\otclient.dir\cmake_clean.cmake
mingw32-make.exe[2]: Leaving directory 'C:/Compilado no CodeBlocks'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\run.dir\build.make CMakeFiles/run.dir/clean
mingw32-make.exe[2]: Entering directory 'C:/Compilado no CodeBlocks'
C:\CMake\bin\cmake.exe -P CMakeFiles\run.dir\cmake_clean.cmake
mingw32-make.exe[2]: Leaving directory 'C:/Compilado no CodeBlocks'
mingw32-make.exe[1]: Leaving directory 'C:/Compilado no CodeBlocks'
Cleaned "otclient - all"

-------------- Build: all in otclient (compiler: GNU GCC Compiler)---------------

Checking if target is up-to-date: mingw32-make.exe -q -f Makefile all
Running command: C:/MinGW/bin/mingw32-make.exe -f "C:/Compilado no CodeBlocks/Makefile"  VERBOSE=1 all
C:\CMake\bin\cmake.exe -H"C:\OTCliente 2" -B"C:\Compilado no CodeBlocks" --check-build-system CMakeFiles\Makefile.cmake 0
C:\CMake\bin\cmake.exe -E cmake_progress_start "C:\Compilado no CodeBlocks\CMakeFiles" "C:\Compilado no CodeBlocks\CMakeFiles\progress.marks"
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory 'C:/Compilado no CodeBlocks'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/depend
mingw32-make.exe[2]: Entering directory 'C:/Compilado no CodeBlocks'
[  0%] Generating otcicon.o
C:\MinGW\bin\windres.exe "-IC:/OTCliente 2/src" "-iC:/OTCliente 2/src/otcicon.rc" -o "C:/Compilado no CodeBlocks/otcicon.o"
gcc: error: 2/src: No such file or directory
C:\MinGW\bin\windres.exe: preprocessing failed.
mingw32-make.exe[2]: *** [otcicon.o] Error 1
CMakeFiles\otclient.dir\build.make:60: recipe for target 'otcicon.o' failed
mingw32-make.exe[2]: Leaving directory 'C:/Compilado no CodeBlocks'
mingw32-make.exe[1]: *** [CMakeFiles/otclient.dir/all] Error 2
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/otclient.dir/all' failed
mingw32-make.exe[1]: Leaving directory 'C:/Compilado no CodeBlocks'
mingw32-make.exe: *** [all] Error 2
C:/Compilado no CodeBlocks/Makefile:128: recipe for target 'all' failed
Process terminated with status 2 (0 minute(s), 2 second(s))
5 error(s), 0 warning(s) (0 minute(s), 2 second(s))

Code:
C:\MinGW\bin\windres.exe "-IC:/OTCliente 2/src" "-iC:/OTCliente 2/src/otcicon.rc" -o "C:/Compilado no CodeBlocks/otcicon.o"
gcc: error: 2/src: No such file or directory

Seems like you are missing things or as the error says, it's not in that directory.
 
Solution
Back
Top