|
From: Horst R. <hr...@un...> - 2002-02-04 21:58:27
|
Hi Ioannis,
of course, there is one. I have the code truncated.
Here the first part of it.
[...]
arrhenius::arrhenius()
{
}
bool arrhenius::calc()
{
for (int i = 0; i < K; i++)
{
for (int j = 0; j < aN[i]; j++)
{
aSY[i] += aY[j][i];
aSSY[i] += sqr(aY[j][i]);
} // for j
aMean[i] = aSY[i] / zw.M;
zw.SY += aSY[i];
zw.SX += aN[i] * aX[i];
zw.SSX += aN[i] * sqr(aX[i]);
[...]
the code is very long. The project is just at the begin.
There are oly link errors but no compiler errors.
Horst
PS: from now I will write to the list from a new e-mail adress:
h.r...@gm.... This subscription will be closed. I subscribed today on
the new adress,
> Ioannis Vranos schreibt::
> I did not see any member function implementations.
>
> Ioannis
[...]
>> -----Original Message-----
>> Of Horst Roessner
>> Sent: Monday, February 04, 2002 10:13 AM
>> To: dev...@li...
>> Subject: [Dev-C++] linking problem
>>
>> 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++/testp
>> roj/arrh.cpp:
>> multiple definition of `arh'
>> c:\dev\dev-c++\testproj\main.o(.bss+0x0)://c/dev/dev-c++/testp
>> roj/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
|