Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!funic!santra!kolvi.hut.fi!lba From: lba@kolvi.hut.fi (Laszlo C Balint) Newsgroups: comp.lang.c++ Subject: function returning a pointer to class Message-ID: <1990Dec4.074852.20695@santra.uucp> Date: 4 Dec 90 07:48:52 GMT Sender: news@santra.uucp (Cnews - USENET news system) Organization: Helsinki University of Technology, Finland Lines: 36 I am porting a program from (I think) g++ to MS-DOS (in this case Turbo C++). There is a piece of code, which causes some trouble: ... class foo; ... foo* func(operand1); ... produces the error message: Undefined symbol operand1 If I rewrite it to: ... void* func(operand1); ... no problems while compiling. It is told to work in g++. Is the code unportable, am I missing something, or does the Turbo C++ have its own personality? Thanks in advance, Laszlo -- Laszlo C. Balint (a Hungarian in Finland) lba@kolvi.hut.fi Helsinki University of Technology, Communications Laboratory Otakaari 5 A, SF-02150 ESPOO, Finland; Tel.: +358 0 4512352 or 4512350 Brought to you by Super Global Mega Corp .com