delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/28/01:19:37

From: Yoni Vila <yonirv AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Problems with memset modules
Date: Fri, 28 Apr 2000 07:44:57 +0200
Organization: Telefonica Transmision de Datos
Lines: 36
Message-ID: <399igsc6er2tpntpcruaqh1jrear1805vc@4ax.com>
NNTP-Posting-Host: cli81-164.santandersupernet.com
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi to all

Some days ago I downloaded some source code for compiling but without
any good results, in fact, everytime I tried I got an error message
like this:

hmm_main.cc:82: warning: ANSI C++ forbids declaration 'main' with no
type
echo "> compiling " hmm_mem.cc "with flags" -02
"> compiling " hmm_mem.cc "with flags" -02
gcc -Wall -02 -c hmm_mem.cc
hmm_mem.cc: In method 'logical_1 Hmm::allocate_cc(long int, long
int)':
hmm_mem.cc:145: implicit declaration of function 'int memset(...)'
make.exe: *** [hmm_mem.o] Error 1

Seems that this is due to the memset module that it's supposed to be
present in Djgpp directory. I've heard that in order to get rid of
this problem I need to link in the standard memory handling modules
that work with the compiler and operating system. Frequently, it is
only a matter of telling the compiler where the standard libraries
are.

I wonder, how do I do this?. I have no experience with compilers (not
a computer Wiz either) since I have exclusively downloaded Djgpp for
compiling an application that I need for my project, for that reason,
I will deeply appreciate any help from you.

The source code was written in C++. I have a Pentium (R) with Windows
98 installed.

Thanks a lot in advance.

Cheers,

Yoni

- Raw text -


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