I had to reduce the PS4000con.c just keeping the
status = ps4000OpenUnit(&(unit.handle)) funcion because I could not compile it, it is attached and console print screen also.
I removed the linux headers then the first error was on
struct tTriggerChannelProperties sourceDetails = {triggerVoltage,10,triggerVoltage,10,PS4000_CHANNEL_A,LEVEL };
[C++ Warning] conio.h(181): W8058 Cannot create pre-compiled header: code in header
[C++ Warning] PS4000con.c(280): W8065 Call to function '_kbhit' with no prototype
[C++ Warning] PS4000con.c(299): W8065 Call to function 'fopen_s' with no prototype
[C++ Warning] PS4000con.c(335): W8065 Call to function '__min' with no prototype
[C++ Warning] PS4000con.c(350): W8012 Comparing signed and unsigned values
[C++ Warning] PS4000con.c(443): W8065 Call to function '_kbhit' with no prototype
[C++ Warning] PS4000con.c(466): W8065 Call to function 'fopen_s' with no prototype
[C++ Warning] PS4000con.c(506): W8065 Call to function '__min' with no prototype
[C++ Warning] PS4000con.c(559): W8004 'status' is assigned a value that is never used
[C++ Warning] PS4000con.c(608): W8065 Call to function '_kbhit' with no prototype
[C++ Warning] PS4000con.c(643): W8065 Call to function '__min' with no prototype
[C++ Warning] PS4000con.c(645): W8065 Call to function 'fopen_s' with no prototype
[C++ Warning] PS4000con.c(755): W8065 Call to function 'fopen_s' with no prototype
[C++ Warning] PS4000con.c(771): W8065 Call to function '_kbhit' with no prototype
[C++ Warning] PS4000con.c(830): W8004 'retry' is assigned a value that is never used
[C++ Warning] PS4000con.c(830): W8004 'status' is assigned a value that is never used
[C++ Error] PS4000con.c(984): E2063 Illegal initialization
======
[struct tTriggerChannelProperties sourceDetails = {triggerVoltage,10,triggerVoltage,10,PS4000_CHANNEL_A,LEVEL };]
======
[C++ Error] PS4000con.c(986): E2063 Illegal initialization
[C++ Warning] PS4000con.c(1034): W8004 'status' is assigned a value that is never used
[C++ Error] PS4000con.c(1045): E2063 Illegal initialization
[C++ Error] PS4000con.c(1046): E2063 Illegal initialization
[C++ Warning] PS4000con.c(1186): W8004 'status' is assigned a value that is never used
[C++ Warning] PS4000con.c(1214): W8065 Call to function 'scanf_s' with no prototype
[C++ Warning] PS4000con.c(1248): W8065 Call to function 'scanf_s' with no prototype
[C++ Warning] PS4000con.c(1341): W8065 Call to function 'scanf_s' with no prototype
[C++ Warning] PS4000con.c(1342): W8065 Call to function 'fopen_s' with no prototype
[C++ Warning] PS4000con.c(1344): W8065 Call to function 'fscanf_s' with no prototype
[C++ Warning] PS4000con.c(1375): W8065 Call to function 'scanf_s' with no prototype
[C++ Warning] PS4000con.c(1410): W8065 Call to function 'scanf_s' with no prototype
[C++ Error] PS4000con.c(1497): E2063 Illegal initialization
[C++ Error] PS4000con.c(1498): E2063 Illegal initialization
[C++ Warning] PS4000con.c(1590): W8065 Call to function '_kbhit' with no prototype