> g++ -v -std=c++17 -Wall -Wextra helloworld.cpp -o hw.o
This misses paths to headers (-I<path>), paths to shared libraries (-L<path>), and link dependencies (-l<lib>).
If you’ve installed CAF to default directory, -L and -I become obsolete, but usually, you’ll have at least something like:
g++ -std=c++17 helloworld.cpp -o helloworld -lcaf_core
If you’re loading the I/O module, you’ll also ned caf_io.
Btw, rather than fiddling with the command line, I strongly suggest writing a minimal CMake scaffold instead. :)
> The installation is in /usr/local/ the default.
> I tried forcing $LD_LIBRARY_PATH, $CPP_INCLUDE_PATH
LD_LIBRARY_PATH is about finding shared objects at runtime. It’s not relevant during compiling / linking.
> Any thoughts?
> thanks & sorry for my noob questions
No worries, we’ve all been there.