Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Linux - Compilation error...

<< < (3/4) > >>

mandrav:

--- Quote from: polygon7 on January 13, 2006, 11:00:32 pm ---Do you think i didnt tried fresh chcek out before reporting this bug?

--- End quote ---

How would I know what you tried and what you didn't try?  :roll:
You didn't bother to tell us until after 8 posts...

Anyway, try adding #include <manager.h> in all sdk/*manager.h files (except manager.h itself). Tell me if this fixed your problem so I can make the changes in the repository...

polygon7:
I added
--- Quote ---#include <manager.h>
--- End quote ---
to configmanager.h, projectmanager.h and toolsmanager.h which fixed problems with managers, i had this problem with cbU2C function:

--- Quote ---globals.cpp: In function `wxChar* cbU2C(const wxString&)':
globals.cpp:471: error: invalid conversion from `const wxChar*' to `wxChar*'
make[4]: *** [globals.lo] Błąd 1
make[4]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[3]: *** [all-recursive] Błąd 1
make[3]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[2]: *** [all] Błąd 2
make[2]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/lukasz/progz/trunk/src'
make: *** [all-recursive] Błąd 1

--- End quote ---

i fix it by changing return value in cbU2C (sdk/globals.cpp) from:

--- Code: ---return str.mb_str();

--- End code ---
to:

--- Code: ---return (wxChar*)str.mb_str();

--- End code ---
but now, after all changes, i have this error:

--- Quote ---manager.cpp: In static member function `static Manager* Manager::Get(wxFrame*)
   ':
manager.cpp:67: error: `cbThrow' undeclared (first use this function)
manager.cpp:67: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[4]: *** [manager.lo] Błąd 1
make[4]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[3]: *** [all-recursive] Błąd 1
make[3]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[2]: *** [all] Błąd 2
make[2]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/lukasz/progz/trunk/src'
make: *** [all-recursive] Błąd 1

--- End quote ---

mandrav:
OK, we 're getting somewhere now. Add #include "cbexception.h" in sdk/manager.cpp.

Ceniza:
I wonder if updating GCC would help somehow, at least with the compilation problems.

Versions to update gcc and g++ to: 3.4.5 or 4.0.2

polygon7:

--- Quote from: mandrav on January 13, 2006, 11:53:39 pm ---OK, we 're getting somewhere now. Add #include "cbexception.h" in sdk/manager.cpp.

--- End quote ---
Files pluginmanager.h and personalitymanager.h needs #include "manager.h", too.
After adding "cbexception.h" in "manager.cpp". C::B compiled without errors.

Thank You. :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version