Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
97 user(s) are online (65 user(s) are browsing Forums)

Members: 0
Guests: 97

more...

Headlines

 
  Register To Post  

Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
Saw spots thread on aw.net on a nice bobble bobble game. Thinking of 'trying' to port this to os4. Lets se how far i can get.

The port seems to rely on several c++ commands that needs to be changed. And i also had to change some in the makefile.

X5000
Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@Antique

Stops on this line here:

friend ostream& operator<< ( ostream &os, List<T>& l ) {
for ( l.reset(); l.hasCurrent(); )
os << *l.next() << " ";

include/List.h:133: error: ISO C++ forbids declaration of 'ostream' with no type
include/List.h:133: error: 'ostream' is neither function nor member function; cannot be declared friend
include/List.h:133: error: expected ';' before '&' token

Someone knows how to rewrite this,or fix it?
Think ill just remove it for now to see what happens.

X5000
Go to top
Re: Trying to make bobble bobble networks
Supreme Council
Supreme Council


See User information
@Antique

While I have no idea about this particular problem (C++ isn't my thing), do you not think that this particular code must have been put in there for a reason, and removing it is probably not the way to go?

If this is indicative of the many "ports" doing the rounds, it's no wonder most are very unstable.

Sorry if this sounds negative, but I've tried many of the so-called ports for AmigaOS, and most are unusable and totally unstable. Some don't even get as far as producing an interface. There is a difference between porting to a platform and simply recompiling it. Generally, the quality certainly needs to be improved and some thorough testing carried out, otherwise it's completely pointless.

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top
Re: Trying to make bobble bobble networks
Just can't stay away
Just can't stay away


See User information
@Rigo

you do realize that the same could be said about the native and well tested app amiupdate, right?
i have seen many reports of amiupdate crashing the last days.
ẗhe reports i have seen with pygame crashing has been due missing .so's.

Go to top
Re: Trying to make bobble bobble networks
Supreme Council
Supreme Council


See User information
@spotUP

Touche

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@Rigo

I'm fully aware that in order to get it working it must be present. But until i figure out a solution,i skip it for now to see what other obsticles come. And i might fix them in the meantime. But yes,the code is most likely there for a reason.

X5000
Go to top
Re: Trying to make bobble bobble networks
Just can't stay away
Just can't stay away


See User information
@Antique

Quote:

Stops on this line here:

friend ostream& operator<< ( ostream &os, List<T>& l ) {
for ( l.reset(); l.hasCurrent(); )
os << *l.next() << " ";

include/List.h:133: error: ISO C++ forbids declaration of 'ostream' with no type
include/List.h:133: error: 'ostream' is neither function nor member function; cannot be declared friend
include/List.h:133: error: expected ';' before '&' token

Someone knows how to rewrite this,or fix it?


Add the following command near the beginning of List.h file:
using namespace std;

Or change ostream into std::ostream.

Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@salass00

You wouldn't know how to fix this one aswell?

src/List.cpp:139: error: expected unqualified-id before '.' token
src/List.cpp:140: error: expected unqualified-id before ';' token
src/List.cpp:141: error: expected unqualified-id before ';' token
src/List.cpp:142: error: expected unqualified-id before ';' token
src/List.cpp:143: error: expected unqualified-id before ';' token

These are the lines in the source.

template List<Sprite>;
template List<BBSprite>;
template List<TcpClient>;
template List<NetAddress>;
template List<PlayerAddress>;

X5000
Go to top
Re: Trying to make bobble bobble networks
Just can't stay away
Just can't stay away


See User information
@Antique

Unfortunately I don't. This is what stopped my porting attempt as well. I'm better with C code than C++ TBH.

Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@Antique

Trying to remove that part for now to see what happens.

Then i end up with this error....

make: *** No rule to make target `/usr/include/stdlib.h', needed by `Hunter.o'. Stop.

The hell does this mean?

X5000
Go to top
Re: Trying to make bobble bobble networks
Just can't stay away
Just can't stay away


See User information
@Antique

For some reason "/usr/include/stdlib.h" is listed as a dependency of Hunter.cpp in the Makefile. Just open the Makefile in Notepad and remove the mention of this file.

BTW With OS4 SDK the correct path to this file would be "/SDK/newlib/include/stdlib.h", but as it's not part of the program there's not really any reason to have this as a dependency in the Makefile.

Go to top
Re: Trying to make bobble bobble networks
Just can't stay away
Just can't stay away


See User information
@Antique

that's where i got stuck too it seems.
i googled the error and found my own post on utilitybase:
http://utilitybase.com/forum/index.ph ... thread&forum=2&topic=1060

Go to top
Re: Trying to make bobble bobble networks
Just can't stay away
Just can't stay away


See User information

Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@spotUP

REmoving the stdlib.h and that means i get further.

But get loads of errors,alot has to do with the fact the super problem i have. Saw that thread on utilitybase earlier today. To bad it didn't help.

But get some sdl errors aswell.
Have i forgot to set something?

Image.cpp:(.text+0x175c): undefined reference to `SDL_MapRGB'
Image.cpp:(.text+0x17c4): undefined reference to `SDL_FillRect'
lib/Image.o: In function `Image::clear()':
Image.cpp:(.text+0x1820): undefined reference to `SDL_FillRect'
lib/Image.o: In function `Image::Image(Image&, int, int, bool)':
Image.cpp:(.text+0x1904): undefined reference to `SDL_CreateRGBSurface'
lib/Image.o: In function `Image::Image(Image&, int, int, bool)':
Image.cpp:(.text+0x19e0): undefined reference to `SDL_CreateRGBSurface'
lib/Image.o: In function `Image::Image(char*)':
Image.cpp:(.text+0x1a30): undefined reference to `SDL_RWFromFile'
Image.cpp:(.text+0x1a40): undefined reference to `SDL_LoadBMP_RW'

X5000
Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@Antique

Looks like you have everything already compiles, and you only have problems on linking stage. So, you need add to makefile -lSDL.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@kas1e

Some of the output.... There is much more undefined reference to those lines that i have removed,those errors i don't know how to fix(templates)...
Not sure how to get the rest of the output so i can write it here....

6.RAM Disk:bb> make
g++ lib/bbclient.o lib/Image.o lib/Display.o lib/RGB.o lib/List.o lib/Rectangle.o lib/FrameManager.o lib/FrameAnimator.o lib/Keyboard.o lib/Level.o lib/Sprite.o lib/Terrestrial.o lib/Hunter.o lib/Robot.o lib/Jumper.o lib/Shooter.o lib/Invader.o lib/Player.o lib/Flying.o lib/Projectile.o lib/FrameAnimators.o lib/SpriteManager.o lib/BBSpriteManager.o lib/BBSprite.o lib/Bubble.o lib/LevelManager.o lib/NetAddress.o lib/NetSocket.o lib/TcpClient.o lib/TcpServer.o lib/UdpSocket.o lib/BBPacket.o -lauto -lSDL -o bin/bbclient
lib/bbclient.o: In function `stop_keyboardHandler()':
bbclient.cpp:(.text+0x1054): undefined reference to `setitimer'
lib/bbclient.o: In function `start_keyboardHandler()':
bbclient.cpp:(.text+0x10dc): undefined reference to `setitimer'
lib/Hunter.o: In function `Hunter::anyPlayerOverMe()':
Hunter.cpp:(.text+0x37c): undefined reference to `List<BBSprite>::reset()'
Hunter.cpp:(.text+0x390): undefined reference to `List<BBSprite>::next()'
Hunter.cpp:(.text+0x3a0): undefined reference to `List<BBSprite>::hasCurrent() const'
Hunter.cpp:(.text+0x3c4): undefined reference to `List<BBSprite>::get() const'
Hunter.cpp:(.text+0x42c): undefined reference to `List<BBSprite>::hasCurrent() const'
lib/Hunter.o: In function `Hunter::anyPlayerBesideMe()':
Hunter.cpp:(.text+0x474): undefined reference to `List<BBSprite>::reset()'
Hunter.cpp:(.text+0x488): undefined reference to `List<BBSprite>::next()'
Hunter.cpp:(.text+0x498): undefined reference to `List<BBSprite>::hasCurrent() const'
Hunter.cpp:(.text+0x4bc): undefined reference to `List<BBSprite>::get() const'
Hunter.cpp:(.text+0x524): undefined reference to `List<BBSprite>::hasCurrent() const'
Hunter.cpp:(.text+0x540): undefined reference to `List<BBSprite>::get() const'
lib/Robot.o: In function `Robot::anime()':
Robot.cpp:(.text+0x45e): undefined reference to `Robot::ANIMATOR_HUNTING_FURAX'
Robot.cpp:(.text+0x462): undefined reference to `Robot::ANIMATOR_HUNTING_FURAX'
Robot.cpp:(.text+0x472): undefined reference to `Robot::ANIMATOR_HUNTING'
Robot.cpp:(.text+0x476): undefined reference to `Robot::ANIMATOR_HUNTING'
lib/Player.o: In function `Player::die(char)':
Player.cpp:(.text+0x416): undefined reference to `Player::ANIMATOR_DYING_BY_ENEMY_R_1'
Player.cpp:(.text+0x41a): undefined reference to `Player::ANIMATOR_DYING_BY_ENEMY_R_1'
Player.cpp:(.text+0x42a): undefined reference to `Player::ANIMATOR_DYING_BY_ENEMY_L_1'
Player.cpp:(.text+0x42e): undefined reference to `Player::ANIMATOR_DYING_BY_ENEMY_L_1'
lib/Player.o: In function `Player::animeDieAux()':
Player.cpp:(.text+0x536): undefined reference to `Player::ANIMATOR_DYING_BY_ENEMY_R_2a'
Player.cpp:(.text+0x53a): undefined reference to `Player::ANIMATOR_DYING_BY_ENEMY_R_2a'
Player.cpp:(.text+0x54a): undefined reference to `Player::ANIMATOR_DYING_BY_ENEMY_L_2a'

X5000
Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@Antique
Try to add: -lsdl -lstdc++ -lauto -lamiga

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Trying to make bobble bobble networks
Home away from home
Home away from home


See User information
@kas1e

Seems there ain't more i can do until i find a fix for the template stuff.

X5000
Go to top
Re: Trying to make bobble bobble networks
Just can't stay away
Just can't stay away


See User information
@Antique

:/ i am curious about this game.
haha damn, it won't run under linux either.. it's dynamically linked with sdl 1.1 :D

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project