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

error in Makefile #1

Open
sdef opened this issue Jun 11, 2012 · 0 comments
Open

error in Makefile #1

sdef opened this issue Jun 11, 2012 · 0 comments
Assignees

Comments

@sdef
Copy link

sdef commented Jun 11, 2012

There is a problem while compiling the files in the aNXT/libanxt dir:
when gcc is invoked with the -lanxt_net option, it can't find the library files as they are still not created;

I resolved this problem changing the compilation order in aNXT/Makefile:
all: bin/anxt-config
make -C libanxt_net/
make -C libanxt/
make -C libanxt_file/
make -C libanxt_tools/
make -C nxtd/
make -C examples/
make -C tools/
(I put libanxt_net before others)

Then I added -L ../lib/ as an option in aNXT/libanxt/Makefile:
$(CC) -shared -Wl,-soname,libanxt.so.1 -o ../lib/libanxt.so.1 $^ -lc -lanxt_net -L ../lib/
Now the library can be compiled without errors.

@ghost ghost assigned jgraef Dec 13, 2012
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

2 participants