gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Problem with libnds9.a?

#102784 - DiscoStew - Sat Sep 16, 2006 11:10 pm

When setting up Visual Studio for my first DS test, compiling seemed to work until it went and tried linking with the nds9 library
Code:

c:/devkitPro/libnds/lib\libnds9.a: could not read symbols: File format not recognized


Do I have a bad library or something?

I'm using the arm9 template Makefile from the nds-20060621 examples.
_________________
DS - It's all about DiscoStew

#102785 - Lick - Sat Sep 16, 2006 11:14 pm

Could you paste the whole log?
_________________
http://licklick.wordpress.com

#102787 - DiscoStew - Sat Sep 16, 2006 11:24 pm

sorry...

Code:
------ Build started: Project: Cube_Demo, Configuration: Debug Win32 ------

Performing Makefile project actions
tex.bin
main.cpp
arm-elf-g++ -MMD -MP -MF /c/My_Projects/DS_Projects/Cube_Demo/build/main.d -g -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/c/My_Projects/DS_Projects/Cube_Demo/header -I/c/devkitPro/libnds/include -I/c/devkitPro/libnds/include -I/c/My_Projects/DS_Projects/Cube_Demo/build -DARM9 -fno-rtti -fno-exceptions -c /c/My_Projects/DS_Projects/Cube_Demo/src/main.cpp -o main.o
linking Cube_Demo.elf
c:/devkitPro/libnds/lib\libnds9.a: could not read symbols: File format not recognized
collect2: ld returned 1 exit status
make[1]: *** [/c/My_Projects/DS_Projects/Cube_Demo/Cube_Demo.elf] Error 1
make: *** [build] Error 2
Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

Build log was saved at "file://c:\My_Projects\DS_Projects\Cube_Demo\Debug\BuildLog.htm"
Cube_Demo - 1 error(s), 0 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

_________________
DS - It's all about DiscoStew

#102788 - Lick - Sat Sep 16, 2006 11:28 pm

Seeing from "arm-elf-g++", you're either using an out-dated Makefile or out-dated DevKitPro, or both. Make sure the SDK and Makefile are up-to-date.

(By the way, the newest files use "arm-eabi-*". Don't ask me what the hell those middle-terms are for, I'm just programmer, not an engineer.)
_________________
http://licklick.wordpress.com

#102791 - DiscoStew - Sat Sep 16, 2006 11:49 pm

Funny, I thought I updated devkitARM when I downloaded libnds. Guess I didn't. I backed up my old devkitARM, installed the newest version, and now it compiles.

Thanks you.
_________________
DS - It's all about DiscoStew