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

Need help: when I type "make", these errors came out #34

Open
Ric-Zhao opened this issue Mar 29, 2022 · 3 comments
Open

Need help: when I type "make", these errors came out #34

Ric-Zhao opened this issue Mar 29, 2022 · 3 comments

Comments

@Ric-Zhao
Copy link

Hi, My laptop is Macbook Pro 14' M1. I suspect the error comes from the M1 chip.
Does anyone can help me out!

arallels@ubuntu-linux-20-04-desktop:~/Downloads/ICSim/ICSim-master$ make
gcc -I/usr/include/SDL2 -c -o icsim.o icsim.c
gcc lib.c
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o: in function _start': (.text+0x18): undefined reference to main'
/usr/bin/ld: (.text+0x1c): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: lib.o] Error 1

image

@ChrisCross1337
Copy link

Same here!

@zombieCraig
Copy link
Owner

zombieCraig commented Apr 25, 2022 via email

@DoctorMG
Copy link

Hm, after
sudo apt-get install libsdl2-dev libsdl2-image-dev can-utils
I got rid of it.
Output looks clean (although I don't know how it really should look):
image

The simulator could be executed after this.

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

4 participants