Hello,
I’m a new user of your tool and so far I appreciate it lot.
The problem I’m facing occurs after compilation during linking process.
I’ve got plenty of messages like
undefined reference to whatever function
After a short google search I found an answer at Unable to compile c++ exaxmple mlp.cpp · Issue #1133 · apache/mxnet · GitHub
Here is the answer given by Hiraditiya
It turns out that the gnu linker is unable to find the
symbols because in the Makefile, link flags are ‘before’ the object file
mlp.o. So a small fix for reordering the LDFLAGS in the command line
should be sufficient. Please apply this patch if useful. Thanks,
diff --git a/example/cpp/Makefile b/example/cpp/Makefile
index f8a8527…637c596 100644
— a/example/cpp/Makefile
+++ b/example/cpp/Makefile
CC=g++
mlp: ./mlp.cpp
– g++ -std=c++0x $(CFLAGS) $(LDFLAGS) -o $@ $^
++ $(CC) -std=c++0x $(CFLAGS) -o $@ $^ $(LDFLAGS)
use_ndarray: ./use_ndarray.cpp
– g++ -std=c++0x $(CFLAGS) $(LDFLAGS) -o $@ $^
++ $(CC) -std=c++0x $(CFLAGS)-o $@ $^ $(LDFLAGS)
If you think it’s the good way to get rid of that how can I configure Atom to do so ?
Many thanks