I am trying to compile Chaiscript using g++ in the command line, but I am running into some issues that stem from my lack of understanding. I am trying to compile this simple test program:
int x = 5;
However, I am met with this error having to do with the -ldl compiler flag:
C:\Users\Kai\Dropbox\progs>g++ -std=c++11 -o test test.cpp -I C:\chaiscript\incl
ld.exe: cannot find -ldl
collect2.exe: error: ld returned 1 exit status
What basic understanding of the library am I missing?