Add libraries to linker
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Add libraries to linker
Here is the log
Note that, when I disable resource in project it works: compile and links fine. But when I enable resource I get this
Note that, when I disable resource in project it works: compile and links fine. But when I enable resource I get this
----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "MywxProject_wsp.mk""
----------Building project:[ MywxProject - Release ]----------
Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll\mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll\mswud)
to specify which configuration exactly you want to use.
mingw32-make.exe[1]: Entering directory `C:/Projects/C++ Projects/MywxProject'
windres -i "C:/Projects/C++ Projects/MywxProject/resource.rc" wx-config Error: No valid setup.h of wxWidgets has been found at location: C:\wxWidgets-2.8.10\lib\gcc_lib\mswud\wx\setup.h -o ./Release/resource.rc.o
g++ -c "C:/Projects/C++ Projects/MywxProject/app.cpp" -O2 -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.10\lib\gcc_lib\mswu -IC:\wxWidgets-2.8.10\include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -D__WX__ -o ./Release/app.o "-I."
Usage: windres [option(s)] [input-file] [output-file]
The options are:
-i --input=<file> Name input file
-o --output=<file> Name output file
-J --input-format=<format> Specify input format
-O --output-format=<format> Specify output format
-F --target=<target> Specify COFF target
--preprocessor=<program> Program to use to preprocess rc file
-I --include-dir=<dir> Include directory when preprocessing rc file
-D --define <sym>[=<val>] Define SYM when preprocessing rc file
-U --undefine <sym> Undefine SYM when preprocessing rc file
-v --verbose Verbose - tells you what it's doing
-c --codepage=<codepage> Specify default codepage
-l --language=<val> Set language when reading rc file
--use-temp-file Use a temporary file instead of popen to read
the preprocessor output
--no-use-temp-file Use popen (default)
-r Ignored for compatibility with rc
@<file> Read options from <file>
-h --help Print this help message
-V --version Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified. A single file name is an input file.
No input-file is stdin, default rc. No output-file is stdout, default rc.
windres: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex
mingw32-make.exe[1]: *** [Release/resource.rc.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `C:/Projects/C++ Projects/MywxProject'
----------Build Ended----------
0 errors, 0 warnings, total time: 00:00:24 seconds
CodeLite 15.x
CodeLite is awesome, I just Love it!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Add libraries to linker
- What is the value set for you WXCFG & WXWIN
- winres does not like files with space in the path - change your project directory
Make sure you have read the HOW TO POST thread
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Add libraries to linker
WXCFG =gcc_lib\mswuderanif wrote:Eran
- What is the value set for you WXCFG & WXWIN
- winres does not like files with space in the path - change your project directory
WXWIN=C:\wxWidgets-2.8.10
So should I change path to projects to something like C:/Projects/C++Projects/MywxProject Instead of C:/Projects/C++ Projects/MywxProject ?
CodeLite 15.x
CodeLite is awesome, I just Love it!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Add libraries to linker
Cool!
I will try that
I will try that
CodeLite 15.x
CodeLite is awesome, I just Love it!
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Add libraries to linker
I messed up in filling the variable.It is not gcc_lib\mswud but rather gcc_lib\mswueranif wrote:Eran
- What is the value set for you WXCFG & WXWIN
- winres does not like files with space in the path - change your project directory
I changed also path to remove spaces and it is all fine
CodeLite 15.x
CodeLite is awesome, I just Love it!