討論串[問題] compiler head file與多個檔在linuxm卮cc
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 9→)留言11則,0人參與, 最新作者imio24 (imio)時間13年前 (2012/10/07 04:00), 編輯資訊
0
0
0
內容預覽:
感謝!! 我compiler 成功了. 我是先compiler (g++ -g helloWorld.h -o helloWorld)我的head file helloWorld.h 去生成一個helloWorld 輸出檔. 再用 g++ -g -c hellowWorld.cpp-o hellow
(還有4個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者cuteclare (清兒)時間13年前 (2012/10/06 19:02), 編輯資訊
0
0
0
內容預覽:
在這邊假設原po所下的指令是. g++ -g helloWorld.cpp -o helloWorld.o. 請改成 g++ -g -c helloWorld.cpp -o helloWorld.o. 不然編譯器會認為這應該是一個執行檔 所以應該有 int main(...). 之類的functio
(還有461個字)

推噓1(1推 0噓 9→)留言10則,0人參與, 最新作者imio24 (imio)時間13年前 (2012/10/06 18:02), 編輯資訊
0
0
0
內容預覽:
Linux. 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...). 問題(Question):. 請問一下, 我想用G++ 在linux 下compiler head file 和 cpp file (如g++ -g main.cpp -o main) 當我comp
(還有765個字)
首頁
上一頁
1
下一頁
尾頁