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.

Problem with the mcc18 location in C18 compiler

Status
Not open for further replies.

kievari

Member level 2
Joined
Mar 14, 2010
Messages
51
Helped
0
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,740
Hi,
being a novice I've had many problems with adopting a small test-driver of an LCD for PIC18F4550. Now much further from some days ago by the help of various great people of forums, but still get errors for things I don't know about the C18 compiler I'm using.

I'll provide the current error I have, hope someone help me go one step further with it. Also, I see in link statement "E:\mcc18\h", while I don't have such folder, but in "C:\mcc18\h", and I can't find from where in Microchip IDE to edit this.

I also attach the program and its other header files.

Code:
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd4550.mcp' started.
Mon Sep 20 08:29:04 2010
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.o".
Clean: Deleted file "C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd4550.mcs".
Clean: Done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F4550 /i"E:\MCC18\h" "lcd-4550.c" -fo="LCD-4550.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:135:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:136:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:138:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:139:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:140:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:141:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:142:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:143:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:144:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:145:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:146:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:147:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:148:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:149:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:150:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:151:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:152:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:153:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:154:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:155:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:156:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:157:Warning [2054] suspicious pointer conversion
C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd-4550.c:158:Warning [2054] suspicious pointer conversion
Executing: "C:\mcc18\bin\mplink.exe" /l"E:\MCC18\lib" /k"E:\MCC18\lkr" "18f4550.lkr" "lcd-4550.o" /z__MPLAB_BUILD=1 /m"lcd4550.map" /o"lcd4550.cof"
MPLINK 4.1, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - Configuration settings have been specified for address 0x00300000 in more than one object module.  Found in './lcd-4550.o', previously found in './LCD-4550.o'
Errors    : 1

Link step failed.
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\WHW\Desktop\prj\LCD_X\lcd4550.mcp' failed.
Mon Sep 20 08:29:05 2010
----------------------------------------------------------------------
BUILD FAILED

Please help if possible!
 

Attachments

  • lcd-4550.zip
    65.2 KB · Views: 82

Re: Compilation problem

Reinstall your C compiler. Then, it will directly relocate the mcc18 location.
 

Re: Compilation problem

Reinstall your C compiler. Then, it will directly relocate the mcc18 location.

Before doing something so drastic, try editing your PROJECT settings and update the paths for headers, linker scripts, etc... to point to the right place (where you DID install C Compiler)
 

Re: Compilation problem

do you know where to edit "-p=18F4550 /i"E:\MCC18\h" ? I could not find it using options I have access from IDE menu :(
 

Re: Compilation problem

Goto Project -> Select language tool location. From here, adjust the compiler to the installed location.

---------- Post added at 07:47 ---------- Previous post was at 07:43 ----------

Once your project in MPLAB, Click Project -> Build options -> Project. You can set the output directory where you want, and all those required path for your compiler. ( 100 % works)
 

Re: Compilation problem

Goto Project -> Select language tool location. From here, adjust the compiler to the installed location.

---------- Post added at 07:47 ---------- Previous post was at 07:43 ----------

Once your project in MPLAB, Click Project -> Build options -> Project. You can set the output directory where you want, and all those required path for your compiler. ( 100 % works)


Strange: in my Set Language Tool Locations -> Registered tools -> C18 toolsuit -> ...
All are right: C:\mcc18

Then where from that E:\ is coming in?!
 

Re: Compilation problem

Error - Configuration settings have been specified for address 0x00300000 in more than one object module. Found in './lcd-4550.o', previously found in './LCD-4550.o'

This is the one that causes the error. Wrong configuration setting i guess?

---------- Post added at 08:12 ---------- Previous post was at 08:06 ----------

If you try this: Click Project -> Build options -> Project. You will see that your current location is in E:/. ~~
 

Re: Compilation problem

Error - Configuration settings have been specified for address 0x00300000 in more than one object module. Found in './lcd-4550.o', previously found in './LCD-4550.o'

This is the one that causes the error. Wrong configuration setting i guess?

Yes this is one of the two problems I can see. One is that "E:\" path that is wrong and I can't find where to edit. Second is this error, which is caused by somehow two times compiling the program! :(
 

Re: Compilation problem

Edit from here: Click Project -> Build options -> Project. But I am not sure how to solve your second problem.. ~~
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top