Topic : Cannot compile examples with hobby version

Forum : 8051

Original Post
Post Information Post
August 12, 2012 - 9:23pm
Guest

Hi all,
I am new to RC-51 compiler. I use the hobby version of the compiler. I can't compile the examples.
I opened the PUTCHAR example projects and this is the error I get when compiling :

***ERROR 100 : UNRESOLVED EXTERNAL
SYMBOL : _printf(PUTCHARC)
LINK/LOCATE RUN COMPLETE, 1 ERROR FOUND.
Error Code: 1

I thinks the problem is with the printf() function.
I get this error when compiling every examples in the examples folder.
Please help me.

Replies
Post Information Post
+1
-1
-1
September 3, 2018 - 10:40pm
Lucifer White

This is going to make the user aware after the issue will be not able to find it so https://netgears.support/netgear-technical-support/ will provide you the most information for the compiling of the program which is necessary for the user to have it.

+1
0
-1
August 13, 2012 - 12:08pm
Raisonance Support Team

Hi,

Well, it works fine here.

Please make sure that you are using the latest versions of both Ride7 (v7.38 or v7.40) and RKit-51 (v6.14).

If you are already using these versions, please try to make one of the examples and then zip the complete folder containing the example and send it to us. (support@raisonance.com)

Best Regazrds,

Vincent

+1
0
-1
August 14, 2012 - 7:59am
Guest

Hi Vincent,
Thank you for your reply.
I use the latest version of both Ride7 and Rkit-51.
Here is the link to the example project I got from the install folder of Ride7, I didn't modify anything:
https://dl.dropbox.com/u/1169138/FIB.zip

Here is the screenshot of the error I get when compiling:

+1
0
-1
August 14, 2012 - 11:52am
Raisonance Support Team

Hi,

Thanks for the feedback.

I tested your project and I see the same message as you if I only link, but it's OK if I recompile FIB.c.
Maybe your FIB.obj is corrupted, or it was compiled with an old version of the software or something similar...

Could you please try to run "Build" instead of Make?

If it fails, please send me the log. (in text, not a screenshot, because I'll need the complete command-line which is out of the screen.) I will also need to know the version of your Windows. (and also if it is 32 or 64-bits and which Service Pack is installed)

If the Build succeeds, please try Make. It should do nothing.
Then try modifying FIB.c (add an empty line) and launch Make again. It should recompile and link.

Best Regards,

Vincent

+1
0
-1
August 14, 2012 - 9:01pm
Guest

Hi Vincent,
I really appriciate your help.
I tried to Build instead of Make and still get the same error.
This is the build log:

  
----------------Build Started: 'fib' in configuration 'Standard'-------------------------- 
  
Building E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib.c 
 Running: 80C51 Compiler 
 "E:\8051 Projects\Raisonance\Ride\Bin\RC51.EXE" "E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib.c" QUIET GENERATEDEPFILE OJ("E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib.obj") PIN("E:\8051 Projects\Raisonance\Ride\Inc;E:\8051 Projects\Raisonance\Ride\Inc\51") PIN("E:\8051 Projects\Raisonance\Ride\\E:\8051 Projects\Raisonance\Ride\\inc\51") NOAM    CD PR("E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib.lst")  FP(NOFLOAT) NOIP  IS  UNSIGNEDCHAR ET(CHAR)  PR     SB  PL(60) PW(80) OE(3) OT("7","SIZE")    RB("0")  MAXERR("25") MAXWAR("25") SM    MOD517(NODP8,NOAU)    
 RC51 COMPILER V06.14.12.087 Hobby version (8 Kb code limited)  
 Copyright (c) Raisonance S.A.S. 1987-2012. All rights reserved.  
 RC51 COMPILATION COMPLETE. 0 WARNING, 0 ERROR  
  
Building E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib.rapp 
 Running: 80C51 Linker 
 "E:\8051 Projects\Raisonance\Ride\Bin\LX51.EXE"  "E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib.obj" TO("E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib.aof") LIBPATH("E:\8051 Projects\Raisonance\Ride\Lib\51")  GENERATEDEPFILE   MAP IX RS(256) RSI(128) CSIZE(65536) XSIZE(65536) DEFN(XSTACKLEN,256) DEFN(TIM1_INIT,E8h) CO(0h) DT(0h) ID(0h) XD(0h) BI(0h) ABSCODEOFFS(0)   XMLM(No,"E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib-modules.Standard.xml")  XMLF(No,8000h,"E:\8051 Projects\Raisonance\Ride\Examples\80C51\General\C\FIB\fib-flash.Standard.xml")      
 MS-DOS MCS-51 CODE BANKING LINKER/LOCATOR LX51 V06.14.12.087 Hobby version (8 Kb code limited)  
 Copyright (c) Raisonance S.A.S. 1987-2012. All rights reserved.  
 ***ERROR 100 : UNRESOLVED EXTERNAL  
 SYMBOL : _printf(FIB)  
 LINK/LOCATE RUN COMPLETE, 1 ERROR  FOUND.  
  Error Code: 1 
  
Build failed 

I'm currenty using Windows 7 home premium 64 bit with service pack 1. I checked that those paths on the command line are valid.

+1
0
-1
August 16, 2012 - 6:11pm
Raisonance Support Team

Hello,

Thanks for the feedback.

Please confirm that you didn't install Ride several times. For example, if you have an old version of Ride (6 or 7), then the compilers and libraries could mix up and they are not always compatible.

Please also check that you have this file on your hard drive:
\Lib\51\RC51S.LIB

Then rename the file and try to build again. Then tell me which error (if different) you get. (don't expect it to succeed)

Best Regards,

Vincent