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

Failing Linking CXX executable huestacean - Make Error (Ubuntu) #144

Open
64n35h4 opened this issue Apr 4, 2020 · 3 comments
Open

Failing Linking CXX executable huestacean - Make Error (Ubuntu) #144

64n35h4 opened this issue Apr 4, 2020 · 3 comments

Comments

@64n35h4
Copy link

64n35h4 commented Apr 4, 2020

Hi, i'm having an issue in make process too..

[100%] Built target huestacean_autogen
[100%] Linking CXX executable huestacean
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
CMakeFiles/huestacean.dir/build.make:111: recipe for target 'huestacean' failed
make[3]: *** [huestacean] Error 1
CMakeFiles/Makefile2:800: recipe for target 'CMakeFiles/huestacean.dir/all' failed
make[2]: *** [CMakeFiles/huestacean.dir/all] Error 2
CMakeFiles/Makefile2:807: recipe for target 'CMakeFiles/huestacean.dir/rule' failed
make[1]: *** [CMakeFiles/huestacean.dir/rule] Error 2
Makefile:205: recipe for target 'huestacean' failed
make: *** [huestacean] Error 2```
It looks like it could be a GCC issue, but i'm not sure..
Running Ubuntu 18.04
Any ideas what might be a solution?
@toastard
Copy link

toastard commented May 12, 2020

I'm also having a similar issue on fedora when linking CXX executable. Hoping someone here can help.

[100%] Building CXX object CMakeFiles/huestacean.dir/huestacean_autogen/mocs_compilation.cpp.o
[100%] Linking CXX executable huestacean
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/huestacean.dir/build.make:114: huestacean] Error 1
make[2]: *** [CMakeFiles/Makefile2:804: CMakeFiles/huestacean.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:811: CMakeFiles/huestacean.dir/rule] Error 2
make: *** [Makefile:208: huestacean] Error 2

@toastard
Copy link

So I figured it out. You need to git clone with the v2.6 tag, the current version only works with windows.

@vorburger
Copy link

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

3 participants