-
zelbo
- Posts: 11
- Joined: Tue Feb 10, 2009 6:23 am
Post
by zelbo » Tue Feb 10, 2009 6:32 am
i'm trying to make the transition from pa-lib. Having some trouble however. When i wipe my whole devkitpro folder and do a fresh install of the latest toolchain, i can't get any of the examples to compile. Here is the message from the hello world example:
Code: Select all
C:\devkitpro\examples\nds\Graphics\2D\hello_world>make clean
clean ...
C:\devkitpro\examples\nds\Graphics\2D\hello_world>make
main.cpp
arm-eabi-g++ -MMD -MP -MF /c/devkitpro/examples/nds/Graphics/2D/hello_world/buil
d/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffas
t-math -mthumb -mthumb-interwork -I/c/devkitpro/examples/nds/Graphics/2D/hello_w
orld/include -I/c/devkitpro/examples/nds/Graphics/2D/hello_world/build -I/c/devk
itPro/libnds/include -I/c/devkitPro/libnds/include -I/c/devkitpro/examples/nds/G
raphics/2D/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /c/devkitpro/ex
amples/nds/Graphics/2D/hello_world/source/main.cpp -o main.o
make[1]: execvp: arm-eabi-g++: Bad file number
make[1]: *** [main.o] Error 127
make: *** [build] Error 2
C:\devkitpro\examples\nds\Graphics\2D\hello_world>pause
Press any key to continue . . .
I noticed that when i download and install using the updater, i have issues with everything being in unix format (linefeed characters with no carriage returns). Even after i do a bunch of conversions (which is a pain because i can't find the tool i used to use, so i'm trying a bunch of different tools that all suck. anyone have a good crlf converter that can do whole directories including subdirectories at once?), i still get errors. Any ideas what i'm doing wrong?
-
WinterMute
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
-
Contact:
Post
by WinterMute » Tue Feb 10, 2009 11:49 am
To start with what you're doing wrong is attempting to convert line endings. Use an editor that understands unix endings, like PN2 provided with the installer.
What OS are you using? That looks like an old Vista problem which was solved quite a while ago.
-
zelbo
- Posts: 11
- Joined: Tue Feb 10, 2009 6:23 am
Post
by zelbo » Tue Feb 10, 2009 10:36 pm
I'm using windows xp pro sp2. i thought i had to make sure everything was in dos format, my friend said i would get lots of errors if i tried compiling with unix line endings. I don't notice a difference in the errors, so i guess it isn't that.
Odd... I tried deleting the directory and reinstalling for about the ninth time, and it worked this time. Don't know what i did differently. Lots more questions to come.
-
dovoto
- Developer
- Posts: 43
- Joined: Fri Aug 12, 2005 10:01 pm
-
Contact:
Post
by dovoto » Wed Feb 11, 2009 2:39 pm
zelbo wrote:I'm using windows xp pro sp2. i thought i had to make sure everything was in dos format, my friend said i would get lots of errors if i tried compiling with unix line endings. I don't notice a difference in the errors, so i guess it isn't that.
I think you need a new friend to go to for programming advice
-
zelbo
- Posts: 11
- Joined: Tue Feb 10, 2009 6:23 am
Post
by zelbo » Thu Feb 12, 2009 5:14 am
I think you need a new friend to go to for programming advice
Are you volunteering?
Who is online
Users browsing this forum: No registered users and 1 guest