Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!ncs.dnd.ca!asterix.drev.dnd.ca!louis From: louis@asterix.drev.dnd.ca (Louis Demers) Newsgroups: comp.sys.mac.programmer Subject: C++ and StandAlone code Keywords: c++,standalone,virtual,alone Message-ID: <1990Sep14.213042.7136@asterix.drev.dnd.ca> Date: 14 Sep 90 21:30:42 GMT Organization: DREV, Defence Research Est. Valcartier Lines: 36 Hello, We are working on a project involving MacApp 2.0, C++ 3.1b1 and A/ROSE ( on a card from GreenSpring Computers). We would like to write the A/ROSE executable in C++. So far we have had only limited succes. We were able to succesfully execute the following: a) a standard C program compiled with the C++ compiler. b) a C++ program without any virtual functions We were NOT able to get a C++ program with virtual functions to execute properly. When the virtual function got called, the card crashed. What piece of code is responsible for the initialization and maintenance of the virtual functions tables ? We suspect that by linking the libraries from GreenSpring, some of that code is not executed. Has anybody written stand alone code in C++ that uses virtual functions ? +---------------------------+-------------------------------------------------+ | Louis Demers | DREV, Defence Research Establishment,Valcartier | | louis@asterix.drev.dnd.ca | POBox 8800, Courcelette,Quebec, CANADA, G0A 1R0 | | (131.132.48.2) | Office: (418) 844-4424 fax (418) 844-4511 | +---------------------------+-------------------------------------------------+ -- | Louis Demers | DREV, Defence Research Establishment,Valcartier | | louis@asterix.drev.dnd.ca | POBox 8800, Courcelette,Quebec, CANADA, G0A 1R0 | | (131.132.48.2) | Office: (418) 844-4424 fax (418) 844-4511 | +---------------------------+-------------------------------------------------+