Page 1 of 1
1 compiling error
Posted: 08 Jul 2009, 22:28
by Nooblets
Hi I'm trying to compile using codeblocks and I've added all the directories with the lib and include and dll and all I get is this 1 error that I can't figure out what to do to fix it:
Code: Select all
C:\Documents and Settings\Nooblets\Desktop\tmw\src\gui\button.cpp||In member function `void Button::init()':|
C:\Documents and Settings\Nooblets\Desktop\tmw\src\gui\button.cpp|85|error: `setFrameSize' was not declared in this scope|
C:\Documents and Settings\Nooblets\Desktop\tmw\src\gui\button.cpp|85|warning: unused variable 'setFrameSize'|
||=== Build finished: 1 errors, 1 warnings ===|
Re: 1 compiling error
Posted: 08 Jul 2009, 23:23
by Marco
Which version of codeblocks and mingw are you using?
The latest stable version of codeblocks is of the 28 Feb 2008, so it's obsolete.
You should download one of the nightly builds, but they, as nightly builds, aren't really stable.
Re: 1 compiling error
Posted: 09 Jul 2009, 00:26
by Nooblets
codeblocks 8.02
Re: 1 compiling error
Posted: 09 Jul 2009, 00:49
by octalot
Which version of Guichan?
setFrameSize() was added in version 0.8.0
Re: 1 compiling error
Posted: 09 Jul 2009, 01:16
by Jaxad0127
octalot wrote:Which version of Guichan?
setFrameSize() was added in version 0.8.0
Older versions should have more problems.
Re: 1 compiling error
Posted: 09 Jul 2009, 03:32
by Nooblets
Yeah I was testing and commented out that one line then after compiling again there are tons of other things that probably still would need to fix after I figured this one out. So I probably need new version of guichan? I just used what was in the devpack and also what was in the lib pack download. Those don't have current up to date?
Re: 1 compiling error
Posted: 09 Jul 2009, 04:36
by Jaxad0127
Nooblets wrote:Yeah I was testing and commented out that one line then after compiling again there are tons of other things that probably still would need to fix after I figured this one out. So I probably need new version of guichan? I just used what was in the devpack and also what was in the lib pack download. Those don't have current up to date?
Did you use the most recent dev pack?
http://www.crushnet.org/tmw/tmw_libs.zip
Re: 1 compiling error
Posted: 09 Jul 2009, 07:46
by Bjørn
If not, it would be interesting to know where you got the devpack from, so that we can remove references to outdated versions.
Re: 1 compiling error
Posted: 09 Jul 2009, 08:09
by Nooblets
Ok I downloaded the lib pack you posted and updated the directories and now it seems to work but i get this 1 error now. If anyone knows what it is from:
Code: Select all
ld.exe||cannot find -lenet|
||=== Build finished: 1 errors, 0 warnings ===|
Re: 1 compiling error
Posted: 09 Jul 2009, 08:56
by Marco
There isn't the library enet.
However your codeblock version is really old. You should download a nightly build. There is a nightly build of 21 July 2009, instead your version is of 28 february 2008...
I think also your MinGW is old, there is gcc-4.4 now, you should use this
Re: 1 compiling error
Posted: 11 Jul 2009, 05:26
by Nooblets
Still get the same error. Can you explain why I am getting this better? You confuse me. Am I missing a library or is it the compiler out of date?
Re: 1 compiling error
Posted: 13 Jul 2009, 07:59
by ElvenProgrammer
Check your compiler libs folder if theres a libenet.a file inside, or configure Code::Blocks lib path to reach the place where the file is.
Re: 1 compiling error
Posted: 13 Jul 2009, 09:06
by Nooblets
libenet.a is in the folder where i extracted the tmw_libs and the codeblocks lib folder. I tried adding both to search directories but still get the same error.