在将VS中的程序移植到ubuntu中出现的一个问题,主要原因是在vs中默认的主函数写成int _tmain(), 而在gcc编译时要找的是int main().改过来就可以了。
天工造物局
(.text+0x18): undefined reference to `main'
(.text+0x18): undefined reference to `main'
转载于:https://www.cnblogs.com/simayuhe/p/7426736.html
更多推荐
- · deck.gl TripsLayer 出租车轨迹动画示例实战:从示例运行到着色器原理
- · Foundry Anvil 中 eth_simulateV1 的 Blob 交易与 Blob Gas 字段规范化:原理、实现与测试验证
- · LMCache CLI 实战:用 `lmcache kvcache clear` 管理运行中服务的 KV Cache 状态
1504
0
0
- 0
扫一扫分享内容
分享
回到
顶部
顶部
所有评论(0)