aaroe Active User

Joined: 27 Dec 2006
Posts: 6
Location: Aalborg, Denmark.
|
Posted: Wed Dec 27, 2006 11:11 am Post subject: Problems compiling c-examples. |
|
|
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++ 4.9.9.2' 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: |
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: |
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. |
|