public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc download
@ 2004-01-06 13:42 Shalom Berman
  2004-01-06 14:57 ` Claudio Bley
  0 siblings, 1 reply; 4+ messages in thread
From: Shalom Berman @ 2004-01-06 13:42 UTC (permalink / raw)
  To: gcc, gcc-help

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

Hi

I am a C++ beginer looking for gcc for window instalation. I found a site that the download is by ftp but I can't download it i need http download.

please help


shalom

[-- Attachment #2: Type: text/plain, Size: 755 bytes --]

-------------------------------------------------------------------------------------

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.


-------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc download
  2004-01-06 13:42 gcc download Shalom Berman
@ 2004-01-06 14:57 ` Claudio Bley
  2004-01-06 19:33   ` gcc/ g++ Linking Issues Johnsy George
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Bley @ 2004-01-06 14:57 UTC (permalink / raw)
  To: gcc-help

On Tue, Jan 06, 2004 at 03:41:38PM +0200, Shalom Berman wrote:
> Hi

Hello.

> I am a C++ beginer looking for gcc for window instalation. I found a site
> that the download is by ftp but I can't download it i need http download.

I don't know what site you found but the GCC team does not provide binary 
packages for your platform. So, this is not the right place to ask for such
things. But the GCC homepage lists these resources for the Microsoft Windows
platform (http://gcc.gnu.org/install/binaries.html):

* Cygwin  http://sources.redhat.com/cygwin/
* MinGW   http://www.mingw.org/

Both of these provide http mirrors of their downloads. Cygwin uses a setup
program which automatically retrieves and installs the requested packages.
Note, that you need to specify GCC explicitely as it is not part of the
default Cygwin installation.

If you need a C/C++ compiler for DOS, then just have a look at DJGPP
(http://www.delorie.com/djgpp/). There are also a few http mirrors available
to download from.

There is also a IDE called Dev-C++ (http://www.bloodshed.net/devcpp.html)
which uses the MinGW port of GCC available for free (GPL).

HTH
-- 
Claudio Bley                                 ASCII ribbon campaign (")
Debian GNU/Linux user                         - against HTML email  X 
http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \

^ permalink raw reply	[flat|nested] 4+ messages in thread

* gcc/ g++ Linking Issues
  2004-01-06 14:57 ` Claudio Bley
@ 2004-01-06 19:33   ` Johnsy George
  0 siblings, 0 replies; 4+ messages in thread
From: Johnsy George @ 2004-01-06 19:33 UTC (permalink / raw)
  To: gcc-help

Hi,
I'm having a problem while linking a dynamic library which was created using
gcc
 with a .cpp file using the g++ compiler.Each time I link I get an error of
undefined symbols.
Here is the command :
For creating dynamic library I use:
gcc helloworld.c -dynamic helloworld
#this creates a helloworld dynamic library.

Here's the command to link:

g++ hello.cpp  -lhelloworld
error : undefined symbol printhello
Here helloworld is a library in which a function called printhello() is
implemented which is
used by hello.cpp.
Please let me know if you have any suggesstions.

johnsy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: gcc/ g++ Linking Issues
@ 2004-01-06 20:54 lrtaylor
  0 siblings, 0 replies; 4+ messages in thread
From: lrtaylor @ 2004-01-06 20:54 UTC (permalink / raw)
  To: johnsy, gcc-help

Johnsy,

Do you have your include file in an 'extern "C"' block?  For example, in hello.cpp, you could have

extern "C" {
#include "helloworld.h"
}

Or in helloworld.h, you could check to see if the file is being included using a C++ compiler and adding the 'extern "C"' block in the header file something like this:

#ifdef __cplusplus
extern "C" {
#endif

<--helloworld.h internals-->

#ifdef __cplusplus
}
#endif

If you don't have something like this, your problem is probably that C++ "mangles" symbol names in order to be able to include the function signature in the name.  It's this feature that allows you to do function overloading - it generates a unique symbol name for each overloaded function, even though the functions have the same name.  The problem in this case, is that C doesn't do that, so when you compile your C++ program with the template to your C function, if you don't tell the compiler that the function should use the C calling convention (no mangled names) via the 'extern "C"' block, the compiler will mangle the name, and will not be able to find the symbol in the C library.

Does that make sense?

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
Behalf Of Johnsy George
Sent: Tuesday, January 06, 2004 12:32 PM
To: gcc-help@gcc.gnu.org
Subject: gcc/ g++ Linking Issues


Hi,
I'm having a problem while linking a dynamic library which was created using
gcc
 with a .cpp file using the g++ compiler.Each time I link I get an error of
undefined symbols.
Here is the command :
For creating dynamic library I use:
gcc helloworld.c -dynamic helloworld
#this creates a helloworld dynamic library.

Here's the command to link:

g++ hello.cpp  -lhelloworld
error : undefined symbol printhello
Here helloworld is a library in which a function called printhello() is
implemented which is
used by hello.cpp.
Please let me know if you have any suggesstions.

johnsy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-06 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-06 13:42 gcc download Shalom Berman
2004-01-06 14:57 ` Claudio Bley
2004-01-06 19:33   ` gcc/ g++ Linking Issues Johnsy George
2004-01-06 20:54 lrtaylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).