Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - stray '\' in program... signal.h: (6 Items)
   
stray '\' in program... signal.h  
Building "helloworld", works great on PC host (cross development) but when I try to build directly on the target I get 
large numbers of errors in header files.  
siginfo.h
target_nto.h

Compiler complains about stray '\' chars, don't see any '\' in these header files and cannot make sense of searches for 
this on the Internet.  

I am new and have never done a build on the embedded (x86) side and so I figure I have some kind of install/setup 
problem.

Thanks for any thoughts,
Augie Mattheiss
JHU/APL

Re: stray '\' in program... signal.h  
On Thu, 2008-03-06 at 12:47 -0500, Augie Mattheiss wrote:

> Compiler complains about stray '\' chars, don't see any '\' in these
> header files and cannot make sense of searches for this on the
> Internet.

Can you cut-and-paste the error the compiler is giving you?

RE: stray '\' in program... signal.h  
Stephane

Thanks for writing back so quickly, I have pasted in the errors
below.  I also pasted in the code, oddly I get a warning:
"ignoring pragma" 
for each line of c code so I know something basic is broken 
somewhere in my config.

Augie




Severity and Description	Path	Resource	Location
Creation Time	Id
/usr/qnx632/target/qnx6/usr/include/signal.h stray '\' in program
helloworld	line 58	1204825643249	801


Severity and Description	Path	Resource	Location
Creation Time	Id
/usr/qnx632/target/qnx6/usr/include/sys/platform.h stray '\' in program
helloworld	line 285	1204825643091	765


Severity and Description	Path	Resource	Location
Creation Time	Id
/usr/qnx632/target/qnx6/usr/include/sys/siginfo.h stray '\' in program
helloworld	line 68	1204825643158	782


Severity and Description	Path	Resource	Location
Creation Time	Id
/usr/qnx632/target/qnx6/usr/include/sys/target_nto.h stray '\' in
program		helloworld	line 155	1204825642826	707


Severity and Description	Path	Resource	Location
Creation Time	Id
warning: ignoring pragma:	helloworld	helloworld.c	line 8
1204825643361	826


#include <stdlib.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
	printf("Welcome to the Momentics IDE\n");
	return EXIT_SUCCESS;
}




 

-----Original Message-----
From: Stephane Boucher [mailto:sboucher@qnx.com] 
Sent: Thursday, March 06, 2008 12:58 PM
To: general-toolchain
Subject: Re: stray '\' in program... signal.h

On Thu, 2008-03-06 at 12:47 -0500, Augie Mattheiss wrote:

> Compiler complains about stray '\' chars, don't see any '\' in these 
> header files and cannot make sense of searches for this on the 
> Internet.

Can you cut-and-paste the error the compiler is giving you?



_______________________________________________
General
http://community.qnx.com/sf/go/post5596
RE: stray '\' in program... signal.h  
On Thu, 2008-03-06 at 16:19 -0500, Augie Mattheiss wrote:
> Stephane
> 
> Thanks for writing back so quickly, I have pasted in the errors 
> below.  I also pasted in the code, oddly I get a warning: 
> "ignoring pragma" 
> for each line of c code so I know something basic is broken 
> somewhere in my config.

I should have been more explicit: cut-and-paste from the "Console" tab.
The "Problem" tab is not nearly as useful as the "Console" tab for
sorting out issues.

Re: RE: stray '\' in program... signal.h  
Could you also attach the preprocessed source so we can see exactly what is being fed to the compiler? Thanks.

Regards,

Ryan Mansfield
Re: stray '\' in program... signal.h  
I've had this problem before. Under Linux, the preprocessor doesn't like DOS-style CR-LF pairs. It doesn't know that \<
CR><LF> is supposed to be a line continuation. Try running dos2unix on all .c and .h files.