News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Project creation errors...

Started by CommonTater, May 02, 2012, 04:14:14 PM

Previous topic - Next topic

CommonTater

Version 7 rc2 ... seems to have a problem with spaces in path names.

The first attachment shows the paths as I set them...
The second shows the error message ... note that it has the wrong path!
The PPJ file is also attached... note the quotes in the path names...

If I take out the space, it works.

Pelle

mmm... I can't reproduce it....
/Pelle

CommonTater

Quote from: Pelle on May 15, 2012, 05:51:14 PM
mmm... I can't reproduce it....

Odd... it does it to me every time...   ???

What I did was to create the project per the images, toss in a quick "hello world" version of main.c...
The error comes when I close POIDE then click on the project file (.ppj or .ppw) to reload it.

I can't be sure but I'm guessing it's something to do with the result directory setting combined with the space in the path name...

It's not a big deal, I just remind myself not to put spaces in path names for now.

czerny

I can reproduce the error. May be a second example helps?

CommonTater

#4
Quote from: czerny on May 15, 2012, 06:22:56 PM
I can reproduce the error. May be a second example helps?

Thanks, my friend...


Note that if I change this...

POC_PROJECT_VERSION = 7.00#
POC_PROJECT_TYPE = 3#
POC_PROJECT_OUTPUTDIR = output#
POC_PROJECT_RESULTDIR = "..\..\a folder"#
POC_PROJECT_ARGUMENTS = #

to this...

POC_PROJECT_VERSION = 7.00#
POC_PROJECT_TYPE = 3#
POC_PROJECT_OUTPUTDIR = output#
POC_PROJECT_RESULTDIR = ..#
POC_PROJECT_ARGUMENTS = #

... it works.

Looks like it's not converting absolute to relative paths correctly.

TimoVJL

Another example.
If i create new project with these values:

Name:     PathTest
Location: C:\code\PellesC\Forum\PathTest
Output:   C:\code\PellesC\Forum\PathTest\output
Result:   C:\code\PellesC\Forum\PathTest\Path Test

Then project file have these:
POC_PROJECT_RESULTDIR = ""Path Test""##
# Build PathTest.exe.
#
""Path Test"\PathTest.exe": \
output\main.obj
$(LINK) $(LINKFLAGS) -out:"$@" $**
and i can't use it.

If i change these:
POC_PROJECT_RESULTDIR = Path Test#"Path Test\PathTest.exe": \
output\main.obj
$(LINK) $(LINKFLAGS) -out:"$@" $**
it works.

May the source be with you