Basically, when I’m trying to compile my program for windows on linux, I get such an error: My main function starts like this: My compiling script looks like this: And this is my file structure: Any clues on why can’t I compile it? Answer Oh, okay I was just dumb, didn’t pass the name of main.cpp to the compiler.
Tag: undefined-reference
Linking error “undefined reference” about boost static library during compiling
I am trying to compile my C++ project on Linux x64 with boost libraries 1.57. This project is compiled with scons and I successfully compiled it on my Arch Linux, but this time failed on a Ubuntu machine. I added -lboost_coroutine flag for linking but the error “undefined reference” still existed. I noticed that the attributes.hpp is exactly one of