Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Code Won't Compile in MPLab with WPILib (http://www.chiefdelphi.com/forums/showthread.php?t=54657)

Inverted 20-02-2007 13:23

Code Won't Compile in MPLab with WPILib
 
Last night I added WPILib to my project so I could use the Wait() function. When I went to compile the code, I got this error:

Code:

Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "user_routines_fast.c" -fo="user_routines_fast.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066 -D_FRC_BOARD
C:\Robotics\camera streamlined\API.h:303:Error [1034] previous definition of macro 'BAUD_4800' does not agree
C:\Robotics\camera streamlined\API.h:304:Error [1034] previous definition of macro 'BAUD_9600' does not agree
C:\Robotics\camera streamlined\API.h:305:Error [1034] previous definition of macro 'BAUD_14400' does not agree
C:\Robotics\camera streamlined\API.h:306:Error [1034] previous definition of macro 'BAUD_19200' does not agree
C:\Robotics\camera streamlined\API.h:308:Error [1034] previous definition of macro 'BAUD_38400' does not agree
C:\Robotics\camera streamlined\API.h:309:Error [1034] previous definition of macro 'BAUD_57600' does not agree
C:\Robotics\camera streamlined\API.h:310:Error [1034] previous definition of macro 'BAUD_115200' does not agree

I believe these values are conflicting with ones in the serial_ports file. Then again, I could be wrong.

Any ideas how to resolve this?

Also, I was a bit unsure of the library files I had to use. Do I only use the two library files included in the WPILib distribution, or do I use the WPILib library and then either the FRC_library or the FRC_alltimers included with the default code?

Kingofl337 20-02-2007 22:12

Re: Code Won't Compile in MPLab with WPILib
 
Remove the Defines for the Baud Setting in API.h


All times are GMT -5. The time now is 04:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi