1833759 Members
2067 Online
110063 Solutions
New Discussion

compile software

 
navin
Super Advisor

compile software

Hello All,
I have a software called text2pdf.c
I need to compile it to run on hpux11.23
how do i do that?
Thanks Much
Learning ...
10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: compile software

Saying just 11.23 isn't helpful. Is it IPF or PA?
You can attempt to use the bundled C compiler or download gcc and try that.

There isn't already a precompiled version of text2pdf?

navin
Super Advisor

Re: compile software

It is for PA . And if you know any link to compiled version of text2pdf..please could you post here
Thanks
Learning ...
Srimalik
Valued Contributor

Re: compile software

are you talking about this program:
http://www.eprg.org/pdfcorner/text2pdf/text2pdf.c

I compiled it using gcc on linux and it works without problems.

gcc for HPUX can be found at:
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=2a08725cc2f02110725cc2f02110275d6e10RCRD

The programs seems to be simple (from compiler point of view)

You can try cc or aCC to compile if you have.
You may need some hacks in the program.

-Sri
abandon all hope, ye who enter here..
navin
Super Advisor

Re: compile software

Is GCC is a lic product. I have tried to download from the above link but as soon as i accept the terms the page disappears.
Thanks
Learning ...
James R. Ferguson
Acclaimed Contributor

Re: compile software

Hi:

Merijn also graciously provides a binary port of 'gcc':

http://mirrors.develooper.com/hpux/downloads.html

Regards!

...JRF...
navin
Super Advisor

Re: compile software

Thanks so much. Now i have th gcc in the system
# swlist -l fileset|grep -i gcc
GNU_C_C++_64.GCC64_4_2_1
Where can i find the compiling instrctions .I have a source to compile using gcc
Thanks Much all
Learning ...
James R. Ferguson
Acclaimed Contributor

Re: compile software

Hi (again):

> Where can i find the compiling instrctions

At the simplest level you can compile thusly:

Given a source file named file.c :

# gcc -o file file.c

...produces object 'file' from a symbolic 'file.c'. If you omit the '-o file' switch and argument the compiler/linker output will be 'a.out.

More-than-you-want-to-know documentation can be found here:

http://gcc.gnu.org/onlinedocs/

Regards!

...JRF...
Srimalik
Valued Contributor

Re: compile software

to compile test2pdf.c:

go to the directory which contains this file.
then run "gcc -o txt2pdf text2pdf.c"

this will create a file name tex2pdf which you can copy to /usr/bin if you want all users on your system to use this.

the usage of binary will then be:

tex2pdf

Thanks
-Sri
abandon all hope, ye who enter here..
navin
Super Advisor

Re: compile software

So far the informations are very help. So this is my last post regarding this .
I did use gcc to compile a text2pdf software.But i'm getting error message as below.Did any one see this kind of error ...any idea
Thanks so much for your help

# /opt/hp-gcc64/bin/gcc -o /tmp/file1 /tmp/text.c
In file included from /usr/include/sys/stdpad.h:23,
from /usr/include/sys/sigevent.h:45,
from /opt/hp-gcc64-4.2.1/lib/gcc/hppa64-hp-hpux11.11/4.2.1/incl
ude/sys/time.h:37,
from /usr/include/sys/resource.h:50,
from /usr/include/sys/wait.h:100,
from /opt/hp-gcc64-4.2.1/lib/gcc/hppa64-hp-hpux11.11/4.2.1/incl
ude/stdlib.h:399,
from /tmp/text.c:27:
/usr/include/machine/sys/_types.h:65: error: expected specifier-qualifier-list b
efore '__fpreg'
Learning ...
Dennis Handly
Acclaimed Contributor

Re: compile software

>But I'm getting error message as below.
>/usr/include/machine/sys/_types.h:65: error: expected specifier-qualifier-list before '__fpreg'

__fpreg is an IPF only data type. It shouldn't be on PA. You may have used the wrong define, -D__ia64.