I wanted to run cspice via g++ on windows. It gives undefined reference errors for the functions defined through cspice. It runs properly in Linux. Can anyone suggest a method to make it work.
I run:
g++ -LK:\Data\cspice\lib -IF:\CPP\Libraries\Boost\boost_1_68_0 -o foo foo.cpp -l:cspice.a -lm
The errors I get are:
undefined reference to 'furnsh_c'
and other functions I use from 'SpiceUsr.h'.
Am I not linking the file properly or what is the error.
Probably start by downloading the tar file for "PC, CYGWIN, gCC, 64bit"
But you'll need to hack about the build and install scripts to use your actual compiler of choice.