Problem while linking an arduino project

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

Please provide the full output of the build process and paste to http://pastebin.com.

Also, will be good to have a project where we can reproduce this issue. Thanks.

Thanks for your fast answer. For sure I can provide the full project but the link you gave me is not working or I don’t know how to use it, sorry.
The project is quite big it comes from GitHub. Give me a way to send you the whole thing.
Thank you again

Hi @petitGG
The right link is http://pastebin.com
Can you share the link to your Github project as well?