Here is my problem !
#define WIN32_LEAN_AND_MEAN /* speed up compilations */
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <tchar.h>
#include "SpiceUsr.h"
#include "main.h"
#define NELEMS(a) (sizeof(a) / sizeof((a)[0]))
static void Main_OnPaint(HWND hwnd)
{
PAINTSTRUCT ps;
RECT rc;
HDC _hDC ;
char _szTmp[256] ;
int _iLen;
ConstSpiceChar * versn;
versn = tkvrsn_c( "TOOLKIT" );
_iLen = wsprintf(_szTmp,"Toolkit version %s\n", versn );
_hDC = BeginPaint(hwnd, &ps);
GetClientRect(hwnd, &rc);
TextOut(_hDC,150,200,_szTmp,_iLen) ;
EndPaint(hwnd, &ps);
}
I use the NASA CSPICE toolkit in 64 bit version.
When linking I added the LIBCMT.lib library but I get the following errors :
Building main.obj.
Building main.res.
Building Spice Version.exe.
POLINK: error: Unresolved external symbol 'access'.
POLINK: error: Unresolved external symbol 'mktemp'.
POLINK: error: Unresolved external symbol 'fileno'.
POLINK: error: Unresolved external symbol 'isatty'.
POLINK: fatal error: 4 unresolved external(s).
*** Error code: 1 ***
Done.
I read a thread about linking errors but nothing solves my problem.
Please help me.