Xref: news-dnh.mv.net comp.os.msdos.djgpp:517 Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!swrinde!sgiblab!rpal.rockwell.com!news.Stanford.EDU!usenet From: Milind Paranjpe Newsgroups: comp.os.msdos.djgpp Subject: Q: Compiling C code with C++ style comments Date: 22 Jun 1995 04:26:16 GMT Organization: Stanford University Lines: 11 Nntp-Posting-Host: tip-mp7-ncs-15.stanford.edu To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp Hi, I'm trying to compile a C program I have which unfortunately has several C++ style comments. I've tried gcc -x c++ -Wall -c foo.c. But I have problems in the link step if I try to link without the -x option. Is there a way to compile the code without having to change the //'s to /* */'s? Thanks a bunch, Milind