Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Regarding the addition of -1 c option to qcc: (5 Items)
   
Regarding the addition of -1 c option to qcc  
hi,

I want to use the header <stdio.h> for my project, then i came to know that only including the header file is of no use.
 In the help manual it was said that use -1 c option to qcc to link against library.
Can anbody guide me about how to do this thing?My project type is QNC C++ project.
RE: Regarding the addition of -1 c option to qcc  
Hi,

first, the option is "-l" (lower-case letter 'el'), 
not "-1" (digit 'one'). And second, you shouldn't 
need to explicitly link against the "c" library; 
that should happen automatically. Including "stdio.h"
ought to be sufficient. Are you experiencing any 
problems? Get any linker errors? If so, which ones?
What are you trying to do?

Regards,
- Thomas

> -----Original Message-----
> From: Sreesha AG [mailto:community-noreply@qnx.com] 
> Sent: 15 December 2008 11:36
> To: general-ide
> Subject: Regarding the addition of -1 c option to qcc
> 
> hi,
> 
> I want to use the header <stdio.h> for my project, then i 
> came to know that only including the header file is of no 
> use. In the help manual it was said that use -1 c option to 
> qcc to link against library.
> Can anbody guide me about how to do this thing?My project 
> type is QNC C++ project.
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post18583
> 
> 
Re: RE: Regarding the addition of -1 c option to qcc  
I don't get any linker error.
I am trying to do file operations, even though i have included <stdio.h> i am getting errors in fopen() and fclose(). 
Apart from this even integer and character variable declarations are showing error.
RE: RE: Regarding the addition of -1 c option to qcc  
Can you provide the source code ?

- Thomas

> -----Original Message-----
> From: Sreesha AG [mailto:community-noreply@qnx.com] 
> Sent: 15 December 2008 12:30
> To: general-ide
> Subject: Re: RE: Regarding the addition of -1 c option to qcc
> 
> I don't get any linker error.
> I am trying to do file operations, even though i have 
> included <stdio.h> i am getting errors in fopen() and 
> fclose(). Apart from this even integer and character variable 
> declarations are showing error.
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post18586
> 
> 
Re: RE: RE: Regarding the addition of -1 c option to qcc  
There was a mistake from my side, now i got the problem solved.
Problem was not related about adding library.
Thank you.