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

Unable to build under linux without modifying Makefile #15

Open
jmccardle opened this issue Jan 17, 2021 · 0 comments
Open

Unable to build under linux without modifying Makefile #15

jmccardle opened this issue Jan 17, 2021 · 0 comments

Comments

@jmccardle
Copy link

jmccardle commented Jan 17, 2021

I got this error when building:

Scrt1.o: in function `_start': undefined reference to `main'

Which led me to this answer: https://stackoverflow.com/a/18825898

I modified my Makefile thusly:

    $(CC) -o uncom uncom.o

to

    $(CC) -shared -o uncom uncom.o

This allowed it to build on my system.

After running config.pl again, the change was overwritten, but compilation succeeded anyway because make or gcc seemed to lazily reuse the files from last time. I don't think modifying the Makefile is the right way to do it, but I couldn't figure out how to modify the perl script to correct the root of the problem.

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

1 participant