I am new at C programming in the Solaris environment. I have 2 source codes written in C. The first is the main program. The second contains a function that is called out by the main program. So in Solaris, when I compiled the source codes, this is what I do:
gcc main.c program2.c My executable file will be a.out The a.out file executes fine, but here's my question: I don't want to have the source code "program2.c" for people to see what's inside that code. How can I still compile these 2 programs, where "main.c" can be seen by everyone, but "program2.c" cannot. Someone mentioned something about an OBJ file. But I don't know what that is. -- This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code