I m trying to compile my program on Windows via Cygwin with the compilation command:
g++ ping.cpp -I./include -L./lib -lchartdir50
I m using an API called ChartDirector which draws charts for me. I ve never linked libraries this way before (usually I do it through Visual Studio), so I’m a little new to this. I ve got a really large list of errors, so I won t list them all, but I’ll list one just to clarify the type of linker errors I’m getting:
(.text$_ZN9BaseChartD1Ev[BaseChart::~BaseChart()]+0x4f): undefined reference to _CBaseChart_destroy
All of these are undefined reference to xxx errors.
I ve got a bunch of header files in ./include and a library called chartdir50.lib in ./lib.
What’s wrong with my compilation line?