Problem compiling the example for the ps4000

Post your C and C++ discussions here
Post Reply
JCab
Newbie
Posts: 0
Joined: Fri May 09, 2014 10:10 am

Problem compiling the example for the ps4000

Post by JCab »

Hi, im trying to compile the example of the SDK for the Picoscope 4000 series and im getting this:

Code: Select all

C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xb2): undefined reference to `_imp__ps4000SetEts@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x15f): undefined reference to `_imp__ps4000SetChannel@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x278): undefined reference to `_imp__ps4000GetTimebase@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2c6): undefined reference to `_imp__ps4000MemorySegments@12'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2fb): undefined reference to `_imp__ps4000SetNoOfCaptures@8'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x359): undefined reference to `_imp__ps4000RunBlock@36'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x411): undefined reference to `_imp__ps4000SetDataBuffers@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x42b): undefined reference to `_imp__ps4000Stop@4'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x459): undefined reference to `fopen_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x4c8): undefined reference to `_imp__ps4000GetValues@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x65b): undefined reference to `__min'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x99c): undefined reference to `_imp__ps4000GetTimebase@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x9ed): undefined reference to `_imp__ps4000MemorySegments@12'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xa25): undefined reference to `_imp__ps4000SetNoOfCaptures@8'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xa86): undefined reference to `_imp__ps4000RunBlock@36'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xb4a): undefined reference to `_imp__ps4000SetDataBufferBulk@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xb6e): undefined reference to `_imp__ps4000Stop@4'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xb9c): undefined reference to `fopen_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xbd4): undefined reference to `_imp__ps4000GetValuesBulk@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xc51): undefined reference to `_imp__ps4000GetValues@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0xe03): undefined reference to `__min'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1116): undefined reference to `_imp__ps4000SetDataBuffers@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1181): undefined reference to `_imp__ps4000GetTimebase@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x120b): undefined reference to `_imp__ps4000RunBlock@36'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x12a1): undefined reference to `_imp__ps4000GetValues@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x142b): undefined reference to `__min'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1449): undefined reference to `fopen_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1694): undefined reference to `_imp__ps4000Stop@4'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1796): undefined reference to `_imp__ps4000SetDataBuffers@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1801): undefined reference to `_imp__ps4000RunStreaming@32'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1830): undefined reference to `fopen_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x191d): undefined reference to `_imp__ps4000GetStreamingLatestValues@12'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1b0e): undefined reference to `_imp__ps4000Stop@4'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1bad): undefined reference to `_imp__ps4000SetTriggerChannelProperties@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1bf4): undefined reference to `_imp__ps4000SetTriggerChannelConditions@12'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1c67): undefined reference to `_imp__ps4000SetTriggerChannelDirections@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1ca6): undefined reference to `_imp__ps4000SetTriggerDelay@8'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x1d17): undefined reference to `_imp__ps4000SetPulseWidthQualifier@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x21a2): undefined reference to `_imp__ps4000SetEts@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x243d): undefined reference to `_imp__ps4000GetUnitInfo@20'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x27ce): undefined reference to `scanf_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x292e): undefined reference to `scanf_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2969): undefined reference to `_imp__ps4000GetTimebase@28'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2ba5): undefined reference to `scanf_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2bc5): undefined reference to `fopen_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2bf1): undefined reference to `fscanf_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2cad): undefined reference to `scanf_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2d2d): undefined reference to `scanf_s'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2e5e): undefined reference to `_imp__ps4000SetSigGenArbitrary@68'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x2f1c): undefined reference to `_imp__ps4000SetSigGenBuiltIn@60'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x32d3): undefined reference to `_imp__ps4000OpenUnit@4'
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\PS4000con.o	PS4000con.c:(.text+0x364f): undefined reference to `_imp__ps4000CloseUnit@4'
c:\archivos de programa\dev-cpp\mingw32\mingw32\bin\ld.exe	PS4000con.o: bad reloc address 0xd30 in section `.rdata'
c:\archivos de programa\dev-cpp\mingw32\mingw32\bin\ld.exe	final link failed: Invalid operation
C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\collect2.exe	[Error] ld returned 1 exit status
25		C:\Documents and Settings\jocaor\Escritorio\C y glade\PS4000sdk_r10_5_0_28(1)\ps4000con\Makefile.win	recipe for target 'Proyecto1.exe' failed
Could someone help me? I followed the instructions and tried different things, but nothing.

Thank you.

Hitesh

Re: Problem compiling the example for the ps4000

Post by Hitesh »

Hi JCab,

Have you added the PS4000.lib file to the project?

You may wish to try using the one provided in SDK version 10.5.0.32 which can now be downloaded from http://www.picotech.com/software.html

Hope this helps.

Post Reply