|
-
Dec 22nd, 2001, 11:07 PM
#1
argp.h
Does anyone know of a c compiler that has the argp.h file? Since its mainly for unix i thought DJGPP would, but it didnt.
-
Dec 23rd, 2001, 06:11 AM
#2
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 23rd, 2001, 01:09 PM
#3
The argp_parser function. Its an advanced argument parser.
-
Dec 23rd, 2001, 01:57 PM
#4
Monday Morning Lunatic
I never heard of it.
You mean parsing things like:I found this though, but make of it what you will...
http://cvs.parisc-linux.org/obsolete/glibc/argp/
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 23rd, 2001, 02:05 PM
#5
Is the entire libc obsolete?
-
Dec 23rd, 2001, 02:08 PM
#6
Monday Morning Lunatic
Nope, that's an obsolete branch of the libc code for PA-RISC systems.
It's the only place I could find that had any source whatsoever. If you have a Linux installation somewhere you might have the source in it
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 23rd, 2001, 02:14 PM
#7
Nope im running windows here.
-
Dec 23rd, 2001, 02:16 PM
#8
Monday Morning Lunatic

Umm...maybe Cygwin has it? I have it installed but not any of the source code.
www.cygwin.com
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 23rd, 2001, 03:49 PM
#9
Nope i tried it already. Ming-W doesnt either. Are there any really good C compilers for windows?
-
Dec 23rd, 2001, 03:53 PM
#10
Monday Morning Lunatic
Well, gcc if you can get Cygwin working 
2.95 works fine under mine, but I've been having difficulty getting GCC3 in - it compiles but can't install, so you'd have to set everything up manually.
Visual C++ generates the best code out of that and Borland FCLT 5.5, but I haven't had chance to peruse gcc3's windows output having not got it working yet 
It was fine under linux though.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 23rd, 2001, 05:38 PM
#11
GCC for windows or DOS just plain sucks. (I want linux so bad!) Visual C++ isnt C, so it makes huge executables. Same with BC 5.5.
-
Dec 23rd, 2001, 05:41 PM
#12
Monday Morning Lunatic
Originally posted by ChimpFace9000
GCC for windows or DOS just plain sucks. (I want linux so bad!) Visual C++ isnt C, so it makes huge executables. Same with BC 5.5.
It does C as well.
Use files with a .c extension.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 23rd, 2001, 05:55 PM
#13
All C++ compilers "do" C. C++ is made from C. But the executables come out huge. Thats why i want a c compiler only.
-
Dec 23rd, 2001, 06:05 PM
#14
Monday Morning Lunatic
Hmmm...some numbers for MSVC (release mode):
Static CRT: 27K
DLL CRT: 2.5K
I couldn't get it less than 2.5 in C mode even when messing with the CRT stuff, although I managed to link in some separately-compiled segments of the CRT (like printf).
However, the problem isn't with the generated code, it's with the libraries it uses.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 23rd, 2001, 06:38 PM
#15
Ok whats static CRT and whats dll CRT. And 27kb is still big. LCC can get it down to like 5. And thats with debug info i think.
-
Dec 24th, 2001, 07:35 AM
#16
Monday Morning Lunatic
CRT = C RunTime library
If you link it into your program, that's static. If it uses msvcrt.dll then that's dynamic (and considering msvcrt.dll HAS to be on every system, that's not really a problem).
Like I say, it's a problem with the layout of the libraries, or perhaps the linker. 27KB was when it brought all the file i/o stuff in which is a size killer for both C and C++.
Although, I got a printf equivalent by using wsprintf, GetStdHandle, and WriteFile. It works perfectly, and takes almost no space in the executable.
I think I get round most of these problems by just hacking out the bits of the CRT source I want and using the rest from kernel32.dll.
I will admit though, that a pure C compiler can get it down further, because the library doesn't need to support calling all the static initialisers.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 24th, 2001, 12:11 PM
#17
I guess my only answer is to switch to Linux. I have to get my own computer first. So i guess ill just use DJGPP while im on windows.
-
May 31st, 2012, 03:50 PM
#18
New Member
Re: argp.h
hi.. i have a question maybe you can help me... how can i call a .txt file with the argp library, being the .txt file "archivo_carreras" and "archivo_estudiantes" These files are input and "archivo salida" is a .txt file too but it is the output of the program
i want to find something like this example:
./pre -F<archivo-estudiantes> -U<archivo-carreras> -o<archivo-salida>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|