Undefined symbols for architecture x86_64:
"_pcap_findalldevs", referenced from:
allNetworkDevices() 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)
in the manPage is nothing about libraries or something like that - what I have to do?
I made a 'clean' before build.
and also: rm -rf ~/Library/Developer/Xcode/DerivedData
--Now:
Undefined symbols for architecture x86_64:
"_pcap_findalldevs", referenced from:
allNetworkDevices() 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)
And: Where can I set this '-v'
Related
MyMac#Macbook Cs50 % make adab
cc adab.c -o adab
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)
make: *** [adab] Error 1
I got this error because my file adab.c was empty, i wrote some simple code and saved the file, then executed "make adab".
MyMac#Macbook Cs50 % make adab
cc adab.c -o adab
MyMac#Macbook Cs50 %
Hope this is helpful for beginners like me :)
The path:
/usr/local/include
/usr/local/lib
Outputs such an error:
Undefined symbols for architecture x86_64:
"cv::String::deallocate()", referenced from:
cv::String::~String() in main.o
cv::String::operator=(cv::String const&) 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)
How to fix this error?
i have 3 errors and one warning when trying to play sound on my app. i am fairly new to xcode.
ld: warning: ignoring file /Users/harrisschrick/Documents/Test app/AudioToolbox.framework/AudioToolbox, missing required architecture x86_64 in file /Users/harrisschrick/Documents/Test app/AudioToolbox.framework/AudioToolbox (3 slices)
Undefined symbols for architecture x86_64:
"_AudioServicesCreateSystemSoundID", referenced from:
-[humordepotViewController viewDidLoad] in humordepotViewController.o
"_AudioServicesPlaySystemSound", referenced from:
-[humordepotViewController PlayAudioButton:] in humordepotViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
any help at all would be amazing!
I have this error in 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)
Very common reason is using a static library that is compiled for 32 bit only.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TraktAPIClient", referenced from:
objc-class-ref in ViewController.o
"_kTraktAPIKey", referenced from:
-[ViewController viewDidLoad] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is the error I get when I try to compile my xcode program
You are trying to use a library "TraktAPIClient" for i386. This library does not seems to contain any compiled code for this architecture. If you are building for iOS, you should target armv7 and armv7s.