ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I dont really want to comment on this but since no one has replied, I take liberty to say what I think..
Did you compile with 64 bit option? I think you have to use -n64 switch with cc while compiling. Sorry again, I havent worked on AIX for 4 years now, but recently some of my friends told me their "old programs having 2GB file limitations will work if they are recompiled for 64 bit option." I havent tested it myself.
argc tell you the number of command line arguments that were passed in.
argv is a list of the actual arguments that were passed in.
The first argument is always the name of the program.
Hence: ls -l
ls is the name of the program and -l is the first argument:
argv[0] = ls
argv[1] = -l
I dont really want to comment on this but since no one has replied, I take liberty to say what I think..
Did you compile with 64 bit option? I think you have to use -n64 switch with cc while compiling. Sorry again, I havent worked on AIX for 4 years now, but recently some of my friends told me their "old programs having 2GB file limitations will work if they are recompiled for 64 bit option." I havent tested it myself.
Best of luck.
ppanyam
this is what i got
Code:
schneidz@lq:/home/schneidz> cc -g -n64 file.c -o file.x
cc: 1501-216 command option 64 is not recognized - passed to ld
"file.c", line 47.20: 1506-342 (W) "/*" detected in comment.
ld: 0706-027 The -n flag is ignored.
ld: 0706-012 The -6 flag is not recognized.
ld: 0706-012 The -4 flag is not recognized.
thanks amways
i think its
Code:
cc -q64
but im not able to test it with a large file. (no output from cc though)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.