Article View: gnu.gcc.help
Article #51165gcc strange behavior
From: Jongwook Kim
Date: Wed, 07 Jul 1993 23:41
Date: Wed, 07 Jul 1993 23:41
30 lines
1465 bytes
1465 bytes
Subject : Strange behavior of gcc HI! I'm using gcc-2.3.1 on sun sparc station. Very strange behavior occurs as follows. I have several plain c files. They are compiled and linked and the executable runs fine. When I recompile everything with -x c++ flag, they are compiled fine. (As I expect, c++ should downwaard compatible.) But, they cannot be linked. ld complains it cannot find lots of functions I defined. I used -fno-strict-prototype when I compiled them. Also, I tried to just compile one file with c++ option and the others are compiled with no c++ option. Up to this point it's fine. But as I tried to linke them, ld complains the same problem. Any hints? Thanks in advance. Jongwook Kim Center for Intelligent Robotic System for Space Exploration Department of Electrical, Computer & System Engineering Rensselaer Polytechnic Institute Troy, NY 12180 U.S.A. internet : kim@ral.rpi.edu
Technical Details
Message-ID:
<21fmvm$77e@usenet.rpi.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!news.ans.net!rpi!kimShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,89e44192bb7e84ac,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-07 16:47:46 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!news.ans.net!rpi!kim From: kim@sol.ral.rpi.edu (Jongwook Kim) Newsgroups: gnu.gcc.help Subject: gcc strange behavior Date: 7 Jul 1993 23:41:42 GMT Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 30 Message-ID: <21fmvm$77e@usenet.rpi.edu> NNTP-Posting-Host: ral.rpi.edu