04-27-2011
So, not execute but compile. Seems like a malformed code in a generated file. Is that from make or the compiler? Usually, you get a file name and command line. Do you have a connect_nonb file? If compiler, try preprocessing to see the compiled file, usually 'cc -E'. The unp.h has a ton of predefines, to guide it for your system. An invalid combination might do this. Usually, my system or ./configure takes care of these for me.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am going to purchase Unix Network Programming by Stevens. The only question I have is which edition to buy. The older (early 90's) edition, or the newer (late 90's) edition. I know conventional thinking would point to the latest ( and greatest?), but I wanted to get some feedback from the forum.... (3 Replies)
Discussion started by: dangral
3 Replies
2. Programming
Good day everyone,
Please help if you are interested in.
I need to do a chat client-server program.
Does anyone know where I can get references or sample programs?
Thank you very much for your time
Eric (2 Replies)
Discussion started by: powermind
2 Replies
3. UNIX for Dummies Questions & Answers
I want to develop a hybrid IM application which will consist of a chat and an offline messaging (BBS) part.
Server must support
Multiple connection (concurrent)
Arguments should not be hard coded (code will be checked at different machines)
No input at the command line
Must run in the... (3 Replies)
Discussion started by: never mind
3 Replies
4. UNIX for Dummies Questions & Answers
Greetings everyone,
I've been using OpenWRT for some time primarly for research in the University. I've also started with some basic network programming (sending UDP packets for instance). But since most of the available tutorials on unix network programming are more related to ethernet... (4 Replies)
Discussion started by: aztroboy
4 Replies
5. Programming
I have written a client-server program which does some data from a file in server to the client. In this I don't want the client to wait indefinitely if server is not running. For this I am using SELECT system call, in this system call we can specify timings as an argument, which tells the client... (2 Replies)
Discussion started by: naresh046
2 Replies
6. UNIX for Dummies Questions & Answers
How does unix system administration, unix programming, unix network programming differ?
Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies
7. IP Networking
Hi,
I have to start doing network programming in C/Unix but I have windows installed.
Could someone please guide me how to set up the environment best suited for the networking programming?
Regards
Vinayak (1 Reply)
Discussion started by: vinayakj20
1 Replies
8. Programming
I have started reading the book Unix Network Programming, Volume 1: The Sockets Networking API. I downloaded all the source code and the readme says I must make the files.
zuro@zuro:~/book/unpv12e$ cd lib
zuro@zuro:~/book/unpv12e/lib$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o... (5 Replies)
Discussion started by: xuro
5 Replies
9. Programming
I have started reading the book Unix Network Programming, Volume 1: The Sockets Networking API. I downloaded all the source code and performed all the steps present in README file.Now when i compile my first program it give the following error.
sainandan@nandan:~/unpv13e/intro$ ./daytimetcpcli... (1 Reply)
Discussion started by: bsainandan
1 Replies
10. UNIX for Advanced & Expert Users
Is it possible to study second volume of Unix Network Programming - Interprocess communication (by Stevense) with Advanced Programming in Unix Environment by the same author?
I've got the idea that the topics/subjects in second volume has more to do with non network programming hence it seems... (0 Replies)
Discussion started by: vectrum
0 Replies
HCC(1) LAM TOOLS HCC(1)
NAME
hcc, mpicc, hcp, mpiCC - Compile LAM C/C++ programs.
SYNTAX
hcc [-showme] ...
hcp [-showme] ...
see cc(1) and CC(1) (or whatever your underlying C/C++ compilers are) for all other options.
DESCRIPTION
hcc and hcp are convenience wrappers for the local native C and C++ compilers. Translation of a LAM program requires the linkage of the
LAM specific libraries which may not reside in one of the standard search directories of ld(1). It also often requires the inclusion of
header files what may also not be found in a standard location. hcc passes its arguments to the local native C compiler along with the -I,
-L and -l options required by LAM programs. This includes all necessary options for ROMIO and/or C++ bindings support (if ROMIO/C++ sup-
port was included when LAM was compiled). hcp is similar, but invokes the native C++ compiler instead.
mpicc is now the same as hcc, just as mpiCC is now the same as hcp. See the NOTES section, below.
By default, hcc uses the C compiler that was selected when LAM was configured (with the --with-cc flag to ./configure, or by setting the
environment variable CC before ./configure was invoked) as the local native C compiler, but this can be overridden by the LAMHCC environ-
ment variable. Likewise, hcp uses the C++ compiler that was selected when LAM was configured (with the --with-cpp flag to ./configure, or
by setting the environment variable CXX before invoking ./configure) by default, but this can be overridden by the LAMHCP environment vari-
able.
OPTIONS
-showme
Does not invoke the underlying C/C++ compiler. Instead, it shows the command line that would be executed to compile the C/C++ pro-
gram.
NOTES
Previous versions of hcc and hcp did not automatically link in the MPI library. Starting with LAM version 6.3, since hcc and hcp have
become the de facto LAM C and C++ compilers, the -lmpi option is now automatically passed to the underlying compiler when linking LAM/MPI
programs.
Previous versions of LAM included the mpicc and mpiCC wrapper scripts to automatically pass -lmpi to hcc and/or hcp. These scripts are now
obsolete since hcc and hcp now include -lmpi automatically. mpicc and mpiCC are now symbolic links to hcc and hcp, respectively, to ensure
backward compatibility.
SEE ALSO
cc(1), CC(1), ld(1), lam-helpfile(5)
LAM 6.5.8 November, 2002 HCC(1)