I have jsut installed Rel23 RC7a on my Vista machine. I also installed it on my XP machine and got the same results.
I create a project. I then import the examples just like the docs said. They will not compile. I used the MOD5213 factory demo.
Description Resource Path Location Type
undefined reference to `main' Factory line 0 C/C++ Problem
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/lib/m5213\libc.a(lib_a-mallocr.o):mallocr.c: more undefined references to `__malloc_unlock' follow Factory line 0 C/C++ Problem
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/lib/m5213\libc.a(lib_a-reallocr.o):mallocr.c: more undefined references to `__malloc_unlock' follow Factory line 0 C/C++ Problem
C:\nburn\include_nn/pins.h undefined reference to `PinIO::read()' Factory line 63 C/C++ Problem
C:\nburn\include_nn/pins.h undefined reference to `PinIO::read()' Factory line 69 C/C++ Problem
C:\nburn\include_nn/pins.h undefined reference to `PinIO::set(unsigned char)' Factory line 67 C/C++ Problem
closer.c: undefined reference to `close' Factory line 0 C/C++ Problem
fstatr.c: undefined reference to `fstat' Factory line 0 C/C++ Problem
lseekr.c: undefined reference to `lseek' Factory line 0 C/C++ Problem
makebuf.c: undefined reference to `isatty' Factory line 0 C/C++ Problem
mallocr.c: undefined reference to `__malloc_lock' Factory line 0 C/C++ Problem
mallocr.c: undefined reference to `__malloc_unlock' Factory line 0 C/C++ Problem
readr.c: undefined reference to `read' Factory line 0 C/C++ Problem
sbrkr.c: undefined reference to `sbrk' Factory line 0 C/C++ Problem
undefined reference to `EnableSerialUpdate' main.cpp Factory line 299 C/C++ Problem
undefined reference to `EnableSmartTraps' main.cpp Factory line 264 C/C++ Problem
undefined reference to `InitIRQUart' main.cpp Factory line 260 C/C++ Problem
undefined reference to `IRQ_assign_stdio' main.cpp Factory line 302 C/C++ Problem
undefined reference to `IRQ_getchar' main.cpp Factory line 260 C/C++ Problem
undefined reference to `IRQ_writestring' main.cpp Factory line 309 C/C++ Problem
undefined reference to `OSChangePrio' main.cpp Factory line 281 C/C++ Problem
undefined reference to `OSTaskCreate' main.cpp Factory line 291 C/C++ Problem
undefined reference to `OSTimeDly' main.cpp Factory line 95 C/C++ Problem
undefined reference to `PinIO::drive()' main.cpp Factory line 200 C/C++ Problem
undefined reference to `PinIO::function(int)' main.cpp Factory line 199 C/C++ Problem
undefined reference to `PinIO::function(int)' main.cpp Factory line 206 C/C++ Problem
undefined reference to `PinIO::function(int)' main.cpp Factory line 213 C/C++ Problem
undefined reference to `PinIO::function(int)' main.cpp Factory line 221 C/C++ Problem
undefined reference to `PinIO::function(int)' main.cpp Factory line 232 C/C++ Problem
undefined reference to `putleds' main.cpp Factory line 77 C/C++ Problem
undefined reference to `putleds' main.cpp Factory line 87 C/C++ Problem
writer.c: undefined reference to `write' Factory line 0 C/C++ Problem
Compile problems on new install
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: Compile problems on new install
Try rebuilding the all the system file. That usually does the trick after an install.
Re: Compile problems on new install
It failes to rebuild all system files. I have the newest java isntalled.
An internal error occurred during: "Clean and rebuild system files".
java.lang.NullPointerException
I tried reinstalling NNDK several times.
An internal error occurred during: "Clean and rebuild system files".
java.lang.NullPointerException
I tried reinstalling NNDK several times.
Re: Compile problems on new install
Or "unable to find platform definition" when I try to rebuild the system.
Re: Compile problems on new install
After doing several rebuilds and cleans via command line out of the blue one of the examples compiled. So I quit touching the settings. This was very frustrating. I had just renewed and wanted to install the new tools on my new computer and couldn't do any work.
Re: Compile problems on new install
I had a similar problem that turned out to be a java 1.4 issue. I also use the command line tools. What happens when you do the following:
1. Open a command prompt, go to the \nburn directory and type "setenv"
2. Type "SET PLATFORM=MOD5213"
3. Go to \nburn\system_nn, type "make clean" followed by "make"
4. Go to \nburn\mod5213\system, type "make clean followed by "make"
5. Go to any mod5213 example in \nburn\mod5213\examples, type "make clean" followed by "make"
This is major overkill, but it assumes nothing and is not dependent on the IDE. If the command line stuff works, then it is likely your pc has an old java version in its path and eclipse can't run correctly.
What "settings" are you referring to that you are changing?
1. Open a command prompt, go to the \nburn directory and type "setenv"
2. Type "SET PLATFORM=MOD5213"
3. Go to \nburn\system_nn, type "make clean" followed by "make"
4. Go to \nburn\mod5213\system, type "make clean followed by "make"
5. Go to any mod5213 example in \nburn\mod5213\examples, type "make clean" followed by "make"
This is major overkill, but it assumes nothing and is not dependent on the IDE. If the command line stuff works, then it is likely your pc has an old java version in its path and eclipse can't run correctly.
What "settings" are you referring to that you are changing?
Re: Compile problems on new install
It is working correctly on my machine after a little playing. I will definately try this on the machine that isn't working yet.
Re: Compile problems on new install
I could not debug builds after doing your suggestion to fix it you should also do "make debug" in each folder that you specified.
Re: Compile problems on new install
I solved the problem. We dont have to rebuild it the tools.
Rick click on your project.
Click Netburner Options
Check "Reload selected Platforms Properties File"
Click Apply.
This fixes the problem.
Rick click on your project.
Click Netburner Options
Check "Reload selected Platforms Properties File"
Click Apply.
This fixes the problem.