RE: compiling problem
RE: compiling problem
- Subject: RE: compiling problem
- From: anil kumar dahiya <email@hidden>
- Date: Wed, 29 Mar 2006 00:41:20 -0800 (PST)
Hi Kenny
Abt First comment: I am sure its not coming out of loop etc.
Abt Second Comment:
I have compiled client program using Litle Endian byte order so if client is working fine on linux intel machine .....then why is not working on mac os machine ?
Is my CFLAGS are fine on macos ?
Thanks and Regards,
Anil
Kenny Millar <email@hidden> wrote:
At first glance it looks like you have a control flow problem in main it is hitting the end of the function without returning a value so possibly jumping out of a loop or conditional code fragment that you didnt expect it to.
Or secondly
One other cause would be that you have a byte ordering problem with your communications..
PPC Machine is big-endian, Intel machine is little endian.
-Kenny
From: darwin-dev-bounces+kennymillar=email@hidden [mailto:darwin-dev-bounces+kennymillar=email@hidden] On Behalf Of anil kumar dahiya
Sent: 29 March 2006 09:19
To: email@hidden
Subject: compiling problem
I have making a client program using openssl to take with Gateway (running on i386 machine)
I compiled program test.c as below on linux (i386 ) and macos 10.3 (ppc).
gcc -ansi -DOPENSSL_THREADS -D_REENTRANT -DOPENSSL_NO_KRB5 -O3 -fomit-frame-pointer -fno-common -DL_ENDIAN -Wall -lssl -lcrypto -o test test.c
test.c:38: warning: return type defaults to `int'
test.c: In function `main':
test.c:95: warning: control reaches end of non-void function
when i run test executable on linux (i386) its able to talk with gateway properly
But when i run test executable on macos (ppc) ..connection between client and gateway get estabish... Then client is able send data to gateway but gateway does not resonse ...
I dont know why gateway is not ! able to sent data to client ( mac os on ppc).. can anyone suggest whats going wrong.
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
New Yahoo! Messenger with Voice.
and save big.