|
楼主 |
发表于 2006-4-20 21:11:36
|
显示全部楼层
第三个问题基本解决了,贴出来给大家参考一下。
The "All Options" Textfield is in Eclipse CDT 3.0.0 no longer editable, instead you have to follow these instructions:
Create a new, managed C++ project. Add a new file to the project (i.e. "main.cpp" ), and go to project properties. Select "C/C++ Build" and then "Tool Settings". Select now "GCC C++ linker" and add the string "`wx-config --libs`" behind the "g++" in the "Command" field . Open a console and type: "wx-config --cxxflags" for g++ compiler or "wx-config --cflags" for gcc. I get the output: "-I/usr/lib/wx/include/gtk2-ansi-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
Select now "reprocessor". For every string in the output starting with "-D" click on the "Add" Button in the "Defined Symbols" field and fill in the string WITHOUT the leading "-D" ( CDT add it automatically ). I add the following strings: "GTK_NO_CHECK_CASTS", "__WXGTK__", "_FILE_OFFSET_BITS=64", "_LARGE_FILES"
Select now "Directories". For every string int output starting with "-I" lick on the "Add" Button in the "Include Path" field and fill in the string WITHOUT the leading "-I" ( CDT add it automatically ).
So i add the directories : "/usr/lib/wx/include/gtk2-ansi-release-2.5", "/usr/include/wx-2.5".
这是老外推荐的方法,不过在现在的版本下还是不行的。编译是可以,但连接通不过。后来发现是CDT在命令行中将.o文件放在库的后面造成的。没有发现managed project有可以将其反过来的方法,只有使用standard project自己写makefile就解决了。
第一个问题有人说升级,305M,太大了,有没有别的办法 ? |
|