Problems compiling c-examples.

Post your C and C++ discussions here
Post Reply
Posts: 6
Joined: Wed Dec 27, 2006 10:41 am
Location: Aalborg, Denmark.

Problems compiling c-examples.

Post by aaroe »

Hi there.

I'm currently trying to compile the c-examples that are supposed to work with the ADC-11 but are experiencing some problems.

First og all, here's some information regarding my environment and my approach.

I'm working witht the code in 'Bloodshed Dev-D++' under Windows XP. I've done as said in the C-file, USBADC11CON.C, and created a new project where I've added the USBADC11CON.C file and added the file 'adc11ms.lib' to the project through the Project Options and added the folder where it's located the to the 'Library Directories' list.

Then I try to compile the project, it seems that the compiler always choke on line 203 in USBADC11CON.C which contains the following function call:

Code: Select all

  UsbAdc11SetTrigger (g_handle, TRUE, TRUE, 10000, 1, FALSE, mv_to_adc (500, 0), -10);
The warning message it provides to the above function call is:

Code: Select all

203 C:\Documents and Settings\Someone\Skrivebord\Mikrolab SVN\c++\adc-11\USBADC11CON.C [Warning] passing negative value `-0x00000000a' for converting 8 of `short int UsbAdc11SetTrigger(short int, short unsigned int, short unsigned int, short unsigned int, short unsigned int, short unsigned int, short unsigned int, short unsigned int)'
I've been fiddling around with it for some time now - browsing around google and such, but can't seem to get it to work. Is it a requirement that the project gets compiled in either Borland og Visual Studio?

Any help is much appreciated.

Yours sincerely
Christian Rasmussen, Denmark.

Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Post by ziko »

Hi and thank you for your post.

Currently we are running a limited service over the Christmas period and as such I cannot answer any programming questions. However we will be operating fully from next week.

Sorry for any inconvenience.

Kind regards

Technical Specialist

Post Reply