我无论如何也找不到解决这个问题的办法!我用的是Swift。突然,我得到了这个错误:
Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
我尝试运行什么模拟器/设备并不重要,我仍然能得到它:
Undefined symbols for architecture x86_64:
"_main",
我一直在经历构建Android源代码的步骤。在按照指示设置好所有东西之后,我执行了"make“。make进程一直前进,直到其最终失败的链接出现以下错误:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
另一个值得注意的是,链接正在产生一些类似于此的警告:
l
我读了一篇的文章,有一次它给了我这个nasm程序:
; tiny.asm
BITS 32
GLOBAL main
SECTION .text
main:
mov eax, 42
ret
并告诉我运行以下命令:
$ nasm -f elf tiny.asm
$ gcc -Wall -s tiny.o
我得到了以下错误:
ld: warning: option -s is obsolete and being ignored
ld: warning: ignoring file tiny.o, file was built for u
我刚开始使用Fortran做一个我正在做的数值项目,已经遇到了麻烦。我的问题是我想使用一个(现有的)模块来计算导数。当我编译这个模块并尝试他们的测试程序时,根据我编译模块的-arch,我得到的是"Undefined symbols for architecture i386:" or "Undefined symbols for architecture x86_64:"。我不确定我该如何解决这个问题?
很抱歉给您带来不便。
Undefined symbols for architecture i386:
"___ad_assign_MOD_assig
我在XCode中有这个错误:
Undefined symbols for architecture x86_64:
"Parser::Parser(char const*)", referenced from:
___cxx_global_var_init in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
(maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture x86_64
这就是我在Eclipse中得到的。尝试链接-lSDLmain,包含SDL.h和SDL_image.h文件,使用带有参数- int main(int argc, char ** argv)的main,但它不想链接。求求你帮帮我
我正在尝试编译一个函数,其中包含对getresuid的调用。但是,它会生成以下警告:
setuid.c:8:3: warning: implicit declaration of function 'getresuid' is invalid
in C99 [-Wimplicit-function-declaration]
getresuid(&ruid, &euid, &suid);
^
Undefined symbols for architecture x86_64:
"_getresuid", referenced from:
我在Qt creator上使用c++。我寻找清理屏幕的命令。
我试过system("CLS") and system("clear"),但它不起作用
我试着
#include <curses.h>
clear();
refresh();
我得到了这个错误:
Undefined symbols for architecture x86_64:
"_clear", referenced from:
_main in main.o
ld: symbol(s) not found for architect
我的代码与我之前问过的问题相同,所以在这里复制它没有任何意义
这是我正在犯的错误:
Undefined symbols for architecture x86_64:
"_stdscr", referenced from:
_screen_init in screen.o
"_werase", referenced from:
_screen_init in screen.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command
我在OSX Lion上有一个构建文件
VPATH = src include
CFLAGS ="-I include -std=gnu99"
hello: hello.o
gcc $^ -o $@
hello.o: hello.h hello.c
gcc $(CFLAGS) -c $< -o $@
但是,当我尝试运行这个make文件时,我得到了以下错误
ld: warning: ignoring file hello.o, file was built for unsupported file format which is not the a
*在Pastebin的完整日志:*
每当我试图编译时,它都会给我一个链接器错误,说明库与x86_64不兼容。我该怎么办?
Undefined symbols for architecture x86_64:
"_Py_InitModule4", referenced from:
_SDL_main in ccYupbfZ.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [powder-x] Error 1
当我尝试编译新安装的MPFR包时,我得到以下错误:
Undefined symbols for architecture x86_64: "_mpfr_init2", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在macbook pro上使用Codelite,我想我已经按照网站上的说明成
我正在使用Xcode 5.0从Donahoo编译C中的TCP/IP套接字的代码。代码可以在这里找到:
在编译时,我得到了错误:
Undefined symbols for architecture x86_64:
"_DieWithError", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在Mac上用Xcode在c++中运行以下代码
int fibo(int x)
{
if (x==1||x==2)
return 1;
else
return fibo(x-1)+fibo(x-2);
}
并且接收到此错误时无法知道原因。
undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) n
在Xcode上构建我的应用程序时,我一直会遇到错误:
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
我的代码没有错误,错误是奇怪的错误,我所做的任何事情都不能解决它。我不认为代码与问题相关,因为它没有在错误中引用。
这是错误的截图。
我有这个错误:
Undefined symbols for architecture x86_64:
"my::Queue<int>::Queue()", referenced from:
_main in ccdwI88X.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
对于这个代码'main.cpp':
#include "Queue.hpp"
int main()
{
my::Queu
Undefined symbols for architecture x86_64:
"makeHero(std::string, int)", referenced from:
makeCard() in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我在Xcode上编译代码时遇到的错误。我环顾四周,将架构设置更改为通用的,并制作了c++ s
编译时我一直收到这个错误!
Undefined symbols for architecture x86_64:
"_lex", referenced from:
_main in main-7a45f7.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我正在编译一个文件main.c。下面是这个程序的前几行:
#include <stdio.h&g
Undefined symbols for architecture x86_64:
"Matrix::~Matrix()", referenced from:
_main in p1.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
当我试图在xcode中编译时,我会得到这个错误。问题在于头文件中的这个析构函数声明。如果我将析构函数注释掉,它将成功构建。
使用以下命令构建opencv静态库:
BUILD_SHARED_LIBS = OFF
build_opencv_core = ON
build_opencv_imgproc = ON
build_opencv_highgui = ON
WITH_FFMPEG = ON
WITH_PNG = ON
WITH_JASPER = ON
WITH_TIFF = ON
WITH_OPENEXR = ON
和其他关闭
库的构建很好
现在,我创建了一个新的Qt项目
INCLUDEPATH += -I/usr/local/include
LIBS += -L/usr/local/lib -lopencv_c
下面是我得到的错误消息: } ^ 1 warning generated. Undefined symbols for architecture x86_64: "_main", referenced from:
implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 clang:
error: linker command failed with exit code 1 (use -v to see invocation) 下面是代码本身:
我只是发布了一个简单的c代码,并得到了这个错误信息。有人能解释一下问题出在哪里吗?
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mac@MACs-MacBook-Pro-2 C % cd "/Users/mac/C/" && g++ tes.c++ -o tes && "/Users/mac/C/"tes
Undefine
因此,我更改了核心数据使用的sqlite文件(全部三个)(我这样做了很多次,没有任何问题),突然我收到了这个错误,并且我的项目无法编译:
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use
尝试使用Clang为OpenSSL构建iOS并继续获取这些错误
Undefined symbols for architecture i386:
"start"
implicit entry/start for main executable
(maybe you meant: _start_hash, _BN_CTX_start , _dtls1_start_timer )
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit cod