From 72a0eab434e383a6c1043d4c3bd601d5fc39a5c2 Mon Sep 17 00:00:00 2001 From: levine Date: Thu, 8 Jan 1998 02:36:54 +0000 Subject: added warning about naming the main function main on VxWorks --- ACE-INSTALL.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ACE-INSTALL.html') diff --git a/ACE-INSTALL.html b/ACE-INSTALL.html index 4343234c026..28fc477101b 100644 --- a/ACE-INSTALL.html +++ b/ACE-INSTALL.html @@ -335,7 +335,7 @@ If you use the GNU GCC C++ compiler please note the following:

on Solaris you are probably using the GNU linker. Try using the Sun linker (/usr/ccs/bin/ld) instead. Note that gcc first looks for the GNU linker if it is installed along - with gcc. The only way to not use the GNU linker is to + with gcc. The only way to not use the GNU linker is to delete it from the installation or to build your own compiler with no linker. Be aware that you still need the libraries and includes of gcc.

@@ -685,6 +685,15 @@ But, that will make repeated testing more difficult on VxWorks. You'd either have to call static constructors and destructors manually or unload/load the program between runs.

+WARNING: ACE on VxWorks assumes that +your main function is named main when using +ACE_HAS_NONSTATIC_OBJECT_MANAGER. Any violation of this assumption is +at your peril. If you really need to call your entry point something +other than main, you'll need to construct an +ACE_Object_Manager. Please see the #define of main +(int, char *[]) in ace/OS.h to see how ACE does +that for entry points named main. + You can spawn a new task to run ace_main, using either VxWorks sp, or ACE'S spa. spa can be used from the VxWorks shell to pass arguments @@ -696,7 +705,6 @@ to ace_main. Its usage is: All arguments must be quoted, even numbers.

-


Building and Installing ACE Network Services

-- cgit v1.2.1