delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/23/09:06:37

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-Id: <5.1.0.14.0.20020121131205.009ffa60@andromeda.uanarino.edu.co>
X-Sender: rduque AT andromeda DOT uanarino DOT edu DOT co
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 21 Jan 2002 13:23:59 -0500
To: djgpp AT delorie DOT com
From: =?iso-8859-1?Q?Ra=FAl?= Duque <rduque AT andromeda DOT uanarino DOT edu DOT co>
Subject: How compile a c++ and c source joined
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g0NE63513920
Reply-To: djgpp AT delorie DOT com

This is my problem:

I worked in a program in two parts: The first one make the GUI using 
ALLEGRO (a *.c file) and the second one use the COMPLEX type (a *.cc file).
Now I want join this files in just one but I have problem when I compile 
the new file (doing the necesary changes).

- When I use .cc o .cpp extension the ALLEGRO enviroment isn't fine.
- When I use .c extension the COMPLEX type and complex function isn't fine.

I think the problem is because the gcc compiles the source depending from 
the extension but The ALLEGRO needs *.c extension (c source) and COMPLEX 
needs *.cpp or *.cc extension (c++ source).

What can I do?



Saludos,

RAUL ANDRES DUQUE M.
Coordinador OCC
mailto:rduque AT andromeda DOT uanarino DOT edu DOT co
mailto:rduque AT usa DOT com
Bogotá, Colombia

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019