I'm working on a M1 and trying to compile a cpp code with libquadmath and the Cuba library.
On the site (http://www.feynarts.de/cuba/) is said that
I can easily make use of GNU C compiler, problem is (and here I'm guessing) I get the following error I'm not sure why.
ignoring file ./lib/libcuba.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
"_llVegas", referenced from:
_main in ccucELGn.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
Any guesses?
Thanks everyone
Related
So I'm trying to run a .s file and every time I do using the command line:
gcc -m32 -o Compute32 Compute.s
I'm given this error:
Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
"printf", referenced from:
main in Compute-f6f555.o
"scanf", referenced from:
main in Compute-f6f555.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation
Can anyone advise me on the next step?
I can only guess since you didn't show me your Compute.s, but I guess your problem is that on OS X, all C functions are prefixed with an underscore in assembly. So if you change your main to _main and likewise printf to _printf, etc. your problem should be resolved.
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 try to build a small iOS app with dreamfactory as backend.
When i build the app with the librarys from dreamfactory i'm getting a mach-o linker error:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please help me.
Sorry for my bad englisch.
I cant comment yet, so I'll have to post here. This was addressed already in this thread: https://github.com/dreamfactorysoftware/ios-sdk/issues/1
I got nasm and I want to compile assembly into an executable. I keep getting the error:
ld: warning: ignoring file firststart.asm, file was built for unsupported file format which is not the architecture being linked (x86_64)
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
when I try to compile with gcc. I am using gcc that comes with xcode. What am I doing wrong?
I'm trying to test this hid api for MAC in XCode by creating a project type "Core Foundation" just by importing the "hidapi/hidapi.h" library and replacing the "mac/main.c" files into the project. After adding the IOKit framework, and trying to build I got an error saying:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.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
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've looked into this error here and on the internet, but it seems that this error it's not related to specific problem, it occurs depending on the situation. Can you give me a help?
Thank you very much.