Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Errors when compiling code in MPLAB 6.61

Status
Not open for further replies.

kseng2002

Member level 2
Joined
Aug 27, 2004
Messages
51
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Malaysia
Activity points
467
Programming Problem

Hi,i faced some problem when i compile my code in MPLAB6.61, hope pro can give me some advice~ thx.

global _MakePacket
==>Directive only allowed when generating an object file

signat _MakePacket,88
==>Expected (END)

I cant understand what is the error is ... Thx for help !!!
 

Programming Problem

The directive global is only used when you are assembling more than one source file and the program will use the linker. This makes the variable visible to the other files. If the program consists of just one source file, global doesn't make sense.
All source files should end with the directive END, otherwise, the assembler gets confused.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top