PDF Editor in Ubuntu

H.S. hs.samix at gmail.com
Sat May 30 00:18:54 UTC 2009


Dotan Cohen wrote:
> 
> I don't know much C, but I found it impossible to make the same code
> compile in both Turbo C and GCC reliably. Surely a skilled programmer

It depends on the compilers you are using and on the functions (libs)
you are linking with.

My approach is to use a standards compliant compiler. AFAIK, most
compilers at least provide switches to use various modes (their own
proprietary, ansi, C++ standards, etc.). Read the compilers manual and
use the appropriate switches. e.g. I usually use -ansi switch with gcc.
This should give you sufficient leads to find out what your TC compiler
uses.

Next, be very careful with various functions you are using. e.g. time
keeping functions can be a problem. Use the ones which are standards
complaint and do not use any custom libs. Read the functions' man pages.
Never fails.

But if you are using something which is not portable, e.g. dos text
graphics libs in TC, then you are making yourself dependent on TC and
your code obviously will not be portable.


> could do better than I, however, it is far from trivial and apparently
> must be coded in from the beginning.

No, it is not trivial. But it involves reading about what tools you are
using and their limitations. Quite understandable and expected, nothing
out of the ordinary, you see.


-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.





More information about the ubuntu-users mailing list