Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: f2c with tcc in 0.6+< Next Oldest | Next Newest >
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Mar. 02 2004,21:43 QUOTE

Just hoping someone can help with this....

Up to 0.6.0 I've been doing little remasters of DSL CD's (basically
just opening the KNOPPIX file and copying stuff into /usr/bin,
/usr/lib etc) to squeeze on a few more apps and then remaking
the iso. In particular (for simple fortran) f2c and tcc was a winner...

Having converted a prog.f with f2c,

tcc -lf2m -lm prog.c

would happily compile it (with libm.so etc squeezed on as well), without
need to link to libstdc++-3-libc6.1-2-2.10.0 explicitly, and everything
ran sweetly.... In 0.6.+ I see you can now "tcc prog.c" without problem
but all of my f2c conversions won't compile anymore......

The tcc in 0.6.+ appears to need another library path with these fortran
conversions and gives undefined symbol errors for `s_wsle', `do_lio',
`e_wsle' etc. These are errors I recognise but I just can't stop them.
If I try to replace the tcc (and /usr/lib/tcc/*) with the older versions,
libc.so complains about unrecognised file types and if I knock out
absolutely everything and try to copy in all the old tcc stuff
I get `__libc_csu_init' etc undefined...

Any ideas/help would be greatly appreciated.....

PS. I don't know if its just the business card CDs I'm using but typically
I can get f2c and all its libraries, ogle, xmgr, latex2rtf, an old copy of
xv and few other bits and pieces (making a 52M iso) still to fit onto
the mini-CD. Very nice indeed, and everything goes back to running in
the ram....
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 04 2004,20:51 QUOTE

Don't know if I can help you with f2c but the traditional "Hello World" program in DSL 0.6+  only needs to link using the following:
   tcc -o hello -lc hello.c
It will then produce a stand alone binary.
Back to top
Profile PM WEB 
nucpc
Unregistered






Posted: Mar. 05 2004,14:59 QUOTE

Thanks for the reply. I'm afraid its actually the nice new libc
and linker that's upsetting my old stuff, but I'm (hopefully)
getting close to having the old version of tcc working with
newer DSL......obviously ditching fortran might one day be
the way forward.......

Cheers.
Back to top
2 replies since Mar. 02 2004,21:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: f2c with tcc in 0.6+

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code