Go to Post I betcha the FIRST officials in the know come in here from time to time and either gasp and think of how to make next year's clue harder or fall off their chair laughing. - Sparks333 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-02-2007, 13:23
Inverted Inverted is offline
Registered User
AKA: Eric P.
FRC #1228 (Robo Tribe)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Rahway, NJ
Posts: 25
Inverted is an unknown quantity at this point
Send a message via AIM to Inverted
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?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WPILIB Port of 2007 Kickoff Code. Kingofl337 Programming 2 16-01-2007 13:50
2005 default code won't compile Robby Programming 22 04-02-2005 18:21
MplaB 5.70 won't install soundman Programming 4 08-01-2005 23:02
What is wrong with this code???? It won't Compile and I don't know why? Please Help CrashZero Programming 23 26-03-2004 09:44
Can't Compile the Default Code pressurex1 Programming 4 25-01-2004 20:26


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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