Test and Measurement Forum

ok how do I build ps3000con.c???

Post your C and C++ discussions here

ok how do I build ps3000con.c???

Postby jleslie48 » Thu Feb 22, 2007 11:22 pm

heres my session showing the makefile I've tried to use:



C:\jon\c\source\PS3000>type ps3000con._i_
# Borland 5.5 ps3000con mode makefile for CONSOLE [Win32]
#
# To use: "make -f ps3000con._i_"
#

CCFLAGS = -c -DWIN32

ps3000con.exe: ps3000con.obj
ilink32 -Tpe -ap -c c0x32 ps3000con ps3000con,ps3000con,ps3000bc.lib

ps3000con.obj: ps3000con.c ps3000.h
bcc32 $(CCFLAGS) ps3000con.c


C:\jon\c\source\PS3000>make -f ps3000con._i_
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -c -DWIN32 ps3000con.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
PS3000con.c:
ilink32 -Tpe -ap -c c0x32 ps3000con ps3000con,ps3000con,ps3000bc.lib
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '___CRTL_VCL_Init' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_MEM_UseBorMM' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_VCLLIB_Linkage' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__ExceptInit' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'GetModuleHandleA' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__startup' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__GetExceptDLLinfoInternal' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'HeapAlloc' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_SetValue' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_InitThread' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Alloc' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_GetValue' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'GetProcessHeap' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'HeapFree' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_ExitThread' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Free' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'ps3000_set_channel' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_set_ets' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_run_block' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_ready' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_get_times_and_values' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_set_trigger' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_run_streaming' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_fopen' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_get_values' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_fprintf' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'Sleep' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_fclose' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_stop' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_atol' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_get_unit_info' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_get_timebase' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '__streams' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_fflush' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_scanf' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_set_siggen' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_open_unit' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_kbhit' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_exit' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_getch' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '__ltoupper' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '_printf' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external 'ps3000_close_unit' referenced from C:\JON\C\SOURCE\PS3000\PS3000CON.OBJ
Error: Unresolved external '__matherr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__matherrl' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fmode' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__argv_expand_ptr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__wargv_expand_ptr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_setargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_exitargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wsetargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wexitargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fileinfo' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setargv__' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setenvp__' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__turboFloat' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ

** error 2 ** deleting ps3000con.exe
C:\jon\c\source\PS3000>


any help???
jleslie48
Active User
Active User
 
Posts: 13
Joined: Tue Feb 13, 2007 3:20 pm

Postby Sarah » Tue Feb 27, 2007 9:44 am

Hi

It looks like the dll is not correctly linked to the solution. You need to include the dll and the correct lib file which for Borland is ps3000bc.lib. The files you will need in your project are:

ps3000con.c
ps3000.h
ps3000bc.lib

And the ps3000.dll file will need to be linked. How you do this will depend on how the compiler requires you to link it, however the lib file must be present as a resource for it to work.

Best Regards
Sarah
 


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests