Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - cc: unknown option: AlibtnsServer.a: (10 Items)
   
cc: unknown option: AlibtnsServer.a  
When building an archive using 4.5 IDE (build I20080413) I get the following:


**** Build of configuration Debug for project tnsServer ****

**** Internal Builder is used for build               ****
qcc -V3.3.5,gcc_ntox86_cpp -w1 -AlibtnsServer.a TNSServer.o TNSExportedTypeDirectory.o TNSExportedClassManager.o 
TNSCommLayerBase.o TNSClientInfo.o TNSClassInstance.o TNSClassFactory.o QNXMessaging\TNSQNX_SRR_Marshaller.o
cc: unknown option: AlibtnsServer.a
Build error occurred, build is stopped
Time consumed: 109  ms. 

I'm not sure how to fix this. the -AlibtnsServer.a looks like a perfectly valid option for qcc.  

Ideas?

Thanks
Kevin
Re: cc: unknown option: AlibtnsServer.a  
It looks like qcc needs the libtnsServer.a to be the next argument, ie

qcc -A libtnsServer.a

Kevin Stallard wrote:
> When building an archive using 4.5 IDE (build I20080413) I get the following:
> 
> 
> **** Build of configuration Debug for project tnsServer ****
> 
> **** Internal Builder is used for build               ****
> qcc -V3.3.5,gcc_ntox86_cpp -w1 -AlibtnsServer.a TNSServer.o TNSExportedTypeDirectory.o TNSExportedClassManager.o 
TNSCommLayerBase.o TNSClientInfo.o TNSClassInstance.o TNSClassFactory.o QNXMessaging\TNSQNX_SRR_Marshaller.o
> cc: unknown option: AlibtnsServer.a
> Build error occurred, build is stopped
> Time consumed: 109  ms. 
> 
> I'm not sure how to fix this. the -AlibtnsServer.a looks like a perfectly valid option for qcc.  
> 
> Ideas?
> 
> Thanks
> Kevin
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post12258
> 

-- 
cburgess@qnx.com
Re: cc: unknown option: AlibtnsServer.a  
Colin Burgess wrote:
> It looks like qcc needs the libtnsServer.a to be the next argument, ie
> 
> qcc -A libtnsServer.a

I think qcc's option parsing should be changed to allow -Alibname. I'm 
going to open a PR.

Regards,

Ryan Mansfield
Re: cc: unknown option: AlibtnsServer.a  
I agree

Ryan Mansfield wrote:
> Colin Burgess wrote:
>> It looks like qcc needs the libtnsServer.a to be the next argument, ie
>>
>> qcc -A libtnsServer.a
> 
> I think qcc's option parsing should be changed to allow -Alibname. I'm 
> going to open a PR.
> 
> Regards,
> 
> Ryan Mansfield
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post12261
> 

-- 
cburgess@qnx.com
Re: cc: unknown option: AlibtnsServer.a  
Colin Burgess wrote:
> I agree

Index: cc.c
===================================================================
--- cc.c        (revision 175305)
+++ cc.c        (working copy)
@@ -363,8 +363,9 @@
                                 }
                                 ar_flag = 1;
                                 if ( opt[1] )
-                                       fatal( str("unknown option: %s", 
opt) );
-                               oname = argv[++i];
+                                       oname = ++opt;
+                               else
+                                       oname = argv[++i];
                                 if ( oname == NULL || oname[0] == '\0' )
                                         fatal( "no output file 
specified" );
                                 break;

Regards,

Ryan Mansfield
Re: cc: unknown option: AlibtnsServer.a  
Looks good

Ryan Mansfield wrote:
> Colin Burgess wrote:
>> I agree
> 
> Index: cc.c
> ===================================================================
> --- cc.c        (revision 175305)
> +++ cc.c        (working copy)
> @@ -363,8 +363,9 @@
>                                  }
>                                  ar_flag = 1;
>                                  if ( opt[1] )
> -                                       fatal( str("unknown option: %s", 
> opt) );
> -                               oname = argv[++i];
> +                                       oname = ++opt;
> +                               else
> +                                       oname = argv[++i];
>                                  if ( oname == NULL || oname[0] == '\0' )
>                                          fatal( "no output file 
> specified" );
>                                  break;
> 
> Regards,
> 
> Ryan Mansfield
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post12264
> 

-- 
cburgess@qnx.com
Re: cc: unknown option: AlibtnsServer.a  
Committed. Attached is an experimental win32 qcc.exe.

Regards,

Ryan Mansfield
Attachment: Application qcc.exe 89.61 KB
Re: cc: unknown option: AlibtnsServer.a  
> Committed. Attached is an experimental win32 qcc.exe.
> 
> Regards,
> 
> Ryan Mansfield


You guys are amazing....

Kevin
Re: cc: unknown option: AlibtnsServer.a  
> > Committed. Attached is an experimental win32 qcc.exe.
> > 
> > Regards,
> > 
> > Ryan Mansfield
> 
> 
> You guys are amazing....
> 
> Kevin


Works perfectly.

Thanks
Kevin
Re: cc: unknown option: AlibtnsServer.a  
This is the same problem I had a couple of months ago building a demo app. Glad I wasn't the only one :-)