User forums > Help

Run wxwidgets project not working

<< < (2/3) > >>

dtrill:
Here is some more info.
CodeBlocks global compiler settings
Selected compiler: GNU GCC Compiler
Compilers installation directory: C:\Program Files\CodeBlocks\MinGW
C compiler: mingw32-gcc.exe
C++ compiler: mingw32-g++.exe
Linker for dynamic libs: mingw32-g++.exe

Windows system environment path:
1st item on list: C:\Program Files\CodeBlocks\MinGW
2nd item on list: C:\MinGW
... more search paths

wxWidgets build library
mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
I am not sure how to find and/or set the compiler for the above command?
Please let me know if you need more info.

stahta01:

--- Quote from: dtrill on February 27, 2020, 04:28:48 am ---Here is some more info.
CodeBlocks global compiler settings
Selected compiler: GNU GCC Compiler
Compilers installation directory: C:\Program Files\CodeBlocks\MinGW
C compiler: mingw32-gcc.exe
C++ compiler: mingw32-g++.exe
Linker for dynamic libs: mingw32-g++.exe

Windows system environment path:
1st item on list: C:\Program Files\CodeBlocks\MinGW
2nd item on list: C:\MinGW
... more search paths

wxWidgets build library
mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
I am not sure how to find and/or set the compiler for the above command?
Please let me know if you need more info.

--- End quote ---

Where did you find directions that said to use "UNICODE=0" because it likely wrong; but, not the cause of the current problem you are having. But, that location needs fixed; so, please report it?

Try using the command below to see which locations the command is found.

--- Code: ---where g++
--- End code ---


Tim S.

stahta01:

--- Quote from: oBFusCATed on May 03, 2015, 07:33:57 pm ---You're probably using gcc for linking c++ code. Change it to g++ and it will work.
This is done in the settings -> compiler -> toolchain executables

--- End quote ---

Please tell me the toolchain exe used to do dynamic linking?

Tim S.

stahta01:
Please post the full rebuild log?
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.

oBFusCATed:

--- Quote from: dtrill on February 27, 2020, 04:28:48 am ---I am not sure how to find and/or set the compiler for the above command?
Please let me know if you need more info.

--- End quote ---
The path to the compiler should be in the PATH environment variable.
You're having a problem because you're probably using c:/mingw for building wx and c:/program files/codeblocks/.../mingw to build your application. Change one of those compilers and you'll be fine. If I were you, I would remove the compiler I don't want to use, so it doesn't cause confusion.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version