Operating System - HP-UX
1748165 Members
3790 Online
108758 Solutions
New Discussion юеВ

NEED help with compling in 64

 
SOLVED
Go to solution
Anwarul Kabir
Advisor

NEED help with compling in 64

Hi I am very new at C++ and HP_UX and I am trying to compile a application thats currently running in 32bit. Now I am trying to compile it in the new setup in 64.

here is the makefile.cflags
CFLAGS_BASE=+DD64 -AA -z -g -mt +x -DSTD_AA +Z


After a lot of fixing paths and stuff i am stumped in this error.

"trans_error.cpp", line 373: error #2065: expected a ";"
flock fl;
^

"trans_error.cpp", line 374: error #2020: identifier "fl" is undefined
memset (&fl, 0, sizeof(fl)); // Initialize the flock structure

we have a .cpp and .h file which has flock declared and I bet since its running in the old system declaration or adding the .h file is not the problem here. so please some one help me or direct me what to do.

thanks in advance
3 REPLIES 3
Steven Schweda
Honored Contributor
Solution

Re: NEED help with compling in 64

I know nothing, but does this look useful?

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1289006


> [...] application thats currently running
> in 32bit.

_Where_ is it running?
Anwarul Kabir
Advisor

Re: NEED help with compling in 64

I got your email just second after i found the solution. your link states exactly what I needed. New system had an entry for flock which the old system didn't. so i guess the compiler got confiused. I had to declare my flock as struct and it worked.

Thanks for your answer and I tried to give points but the website didn't gave me any option! it says it gave the points... i am not sure how the website figured out whom to give the points...

anyhow. thanks
Anwarul Kabir
Advisor

Re: NEED help with compling in 64

need to declare my flock as struct