Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ compile issue #73

Open
NeoGeoFreak2004 opened this issue Feb 19, 2022 · 3 comments
Open

C++ compile issue #73

NeoGeoFreak2004 opened this issue Feb 19, 2022 · 3 comments

Comments

@NeoGeoFreak2004
Copy link

hey yall, so anyways i was trying to compile my own c++ code using ngdevkit but when i type make into the terminal it gives me a error. The error says: g++ -c -o main.o main.cpp
/usr/bin/m68k-neogeo-elf-gcc -o rom.elf main.o pkg-config --libs ngdevkit
main.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile:17: rom.elf] Error 1
idk what this means so can you please help me with this error!

@NeoGeoFreak2004
Copy link
Author

Hey, can you give me a answer why I’m getting this error.

@dciabrin
Copy link
Owner

From the look of your command line, you tried to compile your main.cpp with a c++ compiler that's not built by ngdevkit. So it won't produce m68k-elf suitable for linking by m68k-neogeo-elf-gcc

Support for c++ has been dropped in git a long time ago.

@humbertodias
Copy link

@NeoGeoFreak2004 maybe you could use the docker version #102 as a workaround for while.
I have tried the same command inside the container and the result was:

pkg-config --list-all | sort | grep ngevkit
ngdevkit               ngdevkit - Opensource development for the Neo-Geo

and

pkg-config --libs ngdevkit
-L/ngdevkit/local/m68k-neogeo-elf/lib -specs ngdevkit-specs -lngdevkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants