/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start': (.text+0x18): undefined
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
1、在编译Qt静态库的时候,发现了一个这样的问题,
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
2、原因:静态库的工程文件配置不正确,导致无法找到main()函数而最后报错。
3、正确配置:
DEPENDPATH += MYSTATIC_LIBRARY
INCLUDEPATH += .
TARGET = mylibary
TEMPLATE = lib
CONFIG += staticlib




A beautiful web dashboard for Linux
最近提交(Master分支:2 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)