→ petercoin: VSCode只是editor,compile跟他無關才 1.171.3.21 03/17 22:33
→ petercoin: 對 1.171.3.21 03/17 22:33
→ james732: 你應該把程式碼貼上來吧 XD 111.71.78.131 03/18 00:11
獻上程式碼
定義檔↓
https://imgur.com/1k1bXIS
信頭檔↓
https://imgur.com/w0E6hVF
主執行檔↓
https://imgur.com/p2QkkI7
順便說一下
三個檔案有乖乖的放在同一個資料夾
※ 編輯: yspelocraN (133.5.120.130 日本), 03/18/2020 13:55:37
→ petercoin: 是不是因為你其他cpp檔沒有build只bu 42.73.141.190 03/18 19:39
→ petercoin: ild了有main那支啊? 42.73.141.190 03/18 19:39
應該就是petercoin大說的那個問題,所以查了之後說要用CMake來build全部的檔案
不過現在這樣應該是CMake沒有自動生成makefile檔所以其他檔案沒有一起autobuild
現在就是不知道到底要怎樣才能讓全部的檔案build起來
※ 編輯: yspelocraN (58.95.101.192 日本), 03/19/2020 00:21:44
→ petercoin: 先查一下make怎麼用? 60.251.239.153 03/20 16:00