|
From: Horst R. <hr...@un...> - 2002-02-04 08:13:10
|
Hello and moin moin,
I have a seriously problem. The following code produced a linker error and
no code is build.
c:\dev\dev-c++\testproj\arrh.o(.bss+0x0)://c/dev/dev-c++/testproj/arrh.cpp:
multiple definition of `arh'
c:\dev\dev-c++\testproj\main.o(.bss+0x0)://c/dev/dev-c++/testproj/main.cpp:
first defined here
If i commented out the include, all is compiled fine. I does not understand
it. Can anyone help me ? Thanks in advance.
File:arrh.h
#ifndef arrh_H
#define arrh_H
[...]
class arrhenius
{
public:
arrhenius();
[...]
bool calc();
} arh;
File: main.cpp
#include <cstdlib>
#ifndef arrh_H
#include "arrh.h"
#endif
int main(int argc, char *argv[])
{
[...]
bool b = arh.calc();
[...]}
#endif
There are two other questions.
Last day I have integrated a win api referenz as winhelp into dev-c++. After
copy it in the help directory, it was automaticly integrated. Great !!
Now I seek such for C/C++ commands, a language reference. Any tip ?
Where can I find a list of changes between gcc 2.9.5.2 and gcc 2.9.5.3 ?
I could not find anything.
greetings
Horst
|