Home » Developer & Programmer » Precompilers, OCI & OCCI » Error while executing C exe (Solaris 10, Oracle 10)
icon5.gif  Error while executing C exe [message #296222] Fri, 25 January 2008 02:46 Go to next message
nsurendiran
Messages: 16
Registered: March 2007
Location: India
Junior Member

Hi All,

I wrote a C file called tcpServer.c,in that I open a socket with the server , then bind a port with the server...then open a connection ready to listen to client request

I am making a exe by giving a command

cc -o tcpServer -I/applns/ora10/rdbms/demo  -c tcpServer.c


after this without any error an executable file created named tcpServer

When I triy to execute the file from the command prompt like
./tcpServer

I am getting an error like below
tcpServer: cannot execute

If I put a bash command before execution command, I am getting error like below
bash: ./tcpServer: Invalid argument


Any help regarding this would be appreciated.

Tahnks in advance
N.Surendran
Re: Error while executing C exe [message #296223 is a reply to message #296222] Fri, 25 January 2008 02:49 Go to previous messageGo to next message
Michel Cadot
Messages: 64102
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
How is this an Oracle question?

Regards
Michel
Re: Error while executing C exe [message #296226 is a reply to message #296222] Fri, 25 January 2008 02:59 Go to previous message
nsurendiran
Messages: 16
Registered: March 2007
Location: India
Junior Member

Michel,

I posted here by mistake. I apologize for that.
Previous Topic: want to compile .pc file in unix platform....
Next Topic: Redeclaring a bind variable in proC
Goto Forum:
  


Current Time: Fri Dec 02 20:53:40 CST 2016

Total time taken to generate the page: 0.15202 seconds