下面是引用angusliu于2005-10-13 17:07发表的:
最好是贴一段错误码看看?
另外你的TMAKEDIR 和TMAKEPATH环境变量是否已经设置好?
你编译程序的步骤是怎么样的?
你好
以下是我的環境變數設定
export PATH=/root/tmake-1.13/bin:$PATH
export LD_LIBRARY_PATH=/root/qt-2.3.7/lib:$LD_LIBRARY_PATH
export QTDIR=/root/qt-2.3.7
export QTEDIR=/root/qt-2.3.7
export TMAKEDIR=/root/tmake-1.13
export TMAKEPATH=/root/tmake-1.13/lib/qws/linux-arm-g++
出現的錯誤訊息是
cc.h:7 type specifier omitted for parameter
cc.h:7 parse error before')' //這裡我是寫void bb(int button_state,string str)
cc.h:11 'button_state' undeclared(first use this function) //我寫if(button_state==1)
cc.h:13 'string' uncdeclared (first use this function) //我是寫string a=str;
cc.h:22 implicit declaration of function 'int system(...)' //我是寫system("xxxx")
gui.cpp:At top level:
gui.cpp:27:'int button_state' used prior to declaration //我宣告一個全域變數
int button_state=0
gui.cpp:In method 'void ButtonsGroups::Connect()':
gui.cpp:67 'string' undeclared (first use this function)
gui.cpp:67 parse error before '=' //我寫string str=LineEdit->test()
gui.cpp:71 'str'undeclared(first use this function) //bb(button_state,str)
make:***[gui.o]error
我這些程式我for x86 compiler會過
但是for arm的cross compiler就不會過了
請各位前輩幫我解惑一下
謝謝