Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 7 8 [9] 10 11 ... 27

Author Topic: LCS 4.07.0 Download (Sneak Attacks, April 2013)  (Read 265653 times)

Cheedows

  • Bay Watcher
  • Still a dwarf, right?
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #120 on: April 29, 2013, 10:31:52 pm »

Sneak attacks are the funnest things to do.  You can literally go all rambo with a bowie knife, can't wait when the patch comes that makes sneak attacks not a crime if successful.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #121 on: April 29, 2013, 10:56:01 pm »

Compilation fails
Code: [Select]
g++ -DHAVE_CONFIG_H -I. -I..  -DINSTALL_DATA_DIR=\"/usr/local/share\"  -I../src -g -O2 -MT crimesquad-game.o -MD -MP -MF .deps/crimesquad-game.Tpo -c -o crimesquad-game.o `test -f 'game.cpp' || echo './'`game.cpp
In file included from game.cpp:73:0:
includes.h:1367:54: error: macro "mvaddstr" passed 4 arguments, but takes just 3
 int mvaddstr(int y, int x, const char *text, Log &log);
                                                      ^
includes.h:1371:54: error: macro "mvaddstr" passed 4 arguments, but takes just 3
 int mvaddstr(int y, int x, std::string text, Log &log);
                                                      ^
includes.h:1367:5: error: ‘int mvaddstr’ redeclared as different kind of symbol
 int mvaddstr(int y, int x, const char *text, Log &log);
     ^
In file included from includes.h:154:0,
                 from game.cpp:73:
/usr/include/curses.h:640:28: error: previous declaration of ‘int mvaddstr(int, int, const char*)’
 extern NCURSES_EXPORT(int) mvaddstr (int, int, const char *);  /* generated */
                            ^
In file included from includes.h:154:0,
                 from game.cpp:73:
includes.h:1370:5: error: expected ‘)’ before ‘(’ token
 int mvaddstr(int y, int x, std::string text);
     ^
In file included from game.cpp:73:0:
includes.h:1371:5: error: ‘int mvaddstr’ redeclared as different kind of symbol
 int mvaddstr(int y, int x, std::string text, Log &log);
     ^
In file included from includes.h:154:0,
                 from game.cpp:73:
/usr/include/curses.h:640:28: error: previous declaration of ‘int mvaddstr(int, int, const char*)’
 extern NCURSES_EXPORT(int) mvaddstr (int, int, const char *);  /* generated */
                            ^

Apparently mvaddstr is a macro in ncurses. That's a pain. I'll give a shot at fixing this.

Edit: Committed a possible fix. Let me know if it worked.
« Last Edit: April 29, 2013, 10:59:24 pm by Jonathan S. Fox »
Logged

seth--

  • Bay Watcher
  • We need a slogan!
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #122 on: April 29, 2013, 11:23:08 pm »

Code: [Select]
make  all-recursive
make[1]: Entering directory `/media/data/programming/cpp/lcsgame'
Making all in src
make[2]: Entering directory `/media/data/programming/cpp/lcsgame/src'
g++ -I../src -g -O2   -o crimesquad crimesquad-game.o crimesquad-lcsio.o crimesquad-cursesmovie.o crimesquad-compat.o crimesquad-cursesgraphics.o crimesquad-commondisplay.o crimesquad-commonactions.o crimesquad-consolesupport.o crimesquad-getnames.o crimesquad-translateid.o crimesquad-equipment.o crimesquad-creature.o crimesquad-titlescreen.o crimesquad-highscore.o crimesquad-newgame.o crimesquad-saveload.o crimesquad-basemode.o crimesquad-baseactions.o crimesquad-activate.o crimesquad-reviewmode.o crimesquad-advance.o crimesquad-mapspecials.o crimesquad-newencounter.o crimesquad-sitemode.o crimesquad-talk.o crimesquad-miscactions.o crimesquad-sitedisplay.o crimesquad-stealth.o crimesquad-chase.o crimesquad-fight.o crimesquad-haulkidnap.o crimesquad-activities.o crimesquad-daily.o crimesquad-date.o crimesquad-news.o crimesquad-shopsnstuff.o crimesquad-siege.o crimesquad-endgame.o crimesquad-justice.o crimesquad-lcsmonthly.o crimesquad-monthly.o crimesquad-politics.o crimesquad-interrogation.o crimesquad-recruit.o crimesquad-law.o crimesquad-configfile.o crimesquad-ads.o crimesquad-headline.o crimesquad-layout.o crimesquad-majorevent.o crimesquad-squadstory_text.o crimesquad-sitemap.o crimesquad-location.o crimesquad-locationdef.o crimesquad-activate_sleepers.o crimesquad-sleeper_update.o crimesquad-armor.o crimesquad-creaturetypes.o crimesquad-liberalagenda.o crimesquad-misc.o crimesquad-help.o crimesquad-creaturenames.o crimesquad-Markup.o crimesquad-vehicle.o crimesquad-vehicletype.o crimesquad-armortype.o crimesquad-clip.o crimesquad-cliptype.o crimesquad-item.o crimesquad-itemtype.o crimesquad-loot.o crimesquad-loottype.o crimesquad-money.o crimesquad-weapon.o crimesquad-weapontype.o crimesquad-shop.o crimesquad-log.o crimesquad-locations.o crimesquad-initfile.o crimesquad-world.o  -lncurses
crimesquad-cursesgraphics.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-commondisplay.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-commonactions.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-consolesupport.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-getnames.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-translateid.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-equipment.o: In function `__gnu_cxx::__normal_iterator<Item**, std::vector<Item*, std::allocator<Item*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-creature.o: In function `std::string::size() const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-titlescreen.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-highscore.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-newgame.o: In function `std::string::_M_data() const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-saveload.o: In function `__gnu_cxx::__normal_iterator<Item**, std::vector<Item*, std::allocator<Item*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-basemode.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-baseactions.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-activate.o: In function `__gnu_cxx::new_allocator<int>::deallocate(int*, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-reviewmode.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-advance.o: In function `__gnu_cxx::new_allocator<int>::deallocate(int*, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-mapspecials.o: In function `__gnu_cxx::new_allocator<sitechangest>::deallocate(sitechangest*, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-newencounter.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-sitemode.o: In function `__gnu_cxx::new_allocator<int>::deallocate(int*, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-talk.o: In function `__gnu_cxx::new_allocator<Creature*>::deallocate(Creature**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-miscactions.o: In function `__gnu_cxx::__normal_iterator<Creature**, std::vector<Creature*, std::allocator<Creature*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-sitedisplay.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-stealth.o: In function `__gnu_cxx::new_allocator<int>::deallocate(int*, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-chase.o: In function `__gnu_cxx::__normal_iterator<Vehicle**, std::vector<Vehicle*, std::allocator<Vehicle*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-fight.o: In function `__gnu_cxx::new_allocator<Item*>::deallocate(Item**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-haulkidnap.o: In function `__gnu_cxx::new_allocator<Creature*>::deallocate(Creature**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-activities.o: In function `__gnu_cxx::__normal_iterator<Creature**, std::vector<Creature*, std::allocator<Creature*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-daily.o: In function `__gnu_cxx::__normal_iterator<Creature**, std::vector<Creature*, std::allocator<Creature*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-date.o: In function `__gnu_cxx::__normal_iterator<Creature**, std::vector<Creature*, std::allocator<Creature*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-news.o: In function `__gnu_cxx::new_allocator<newsstoryst*>::deallocate(newsstoryst**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-shopsnstuff.o: In function `__gnu_cxx::new_allocator<Vehicle*>::deallocate(Vehicle**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-siege.o: In function `__gnu_cxx::__normal_iterator<Vehicle**, std::vector<Vehicle*, std::allocator<Vehicle*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-endgame.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-justice.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-lcsmonthly.o: In function `__gnu_cxx::__normal_iterator<Item**, std::vector<Item*, std::allocator<Item*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-monthly.o: In function `__gnu_cxx::__normal_iterator<Creature**, std::vector<Creature*, std::allocator<Creature*> > >::operator+(long const&) const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-politics.o: In function `__gnu_cxx::new_allocator<int>::deallocate(int*, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-interrogation.o: In function `__gnu_cxx::new_allocator<int>::deallocate(int*, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-recruit.o: In function `__gnu_cxx::new_allocator<Creature*>::deallocate(Creature**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-law.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-configfile.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-ads.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-headline.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-layout.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-majorevent.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-squadstory_text.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-sitemap.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-activate_sleepers.o: In function `__gnu_cxx::new_allocator<Creature*>::deallocate(Creature**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-sleeper_update.o: In function `__gnu_cxx::new_allocator<Creature*>::deallocate(Creature**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-armor.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-creaturetypes.o: In function `std::string::_M_data() const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-liberalagenda.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-misc.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-help.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-creaturenames.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-vehicle.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-vehicletype.o: In function `std::string::_M_data() const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-armortype.o: In function `ItemType::is_money() const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-clip.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-cliptype.o: In function `ItemType::is_money() const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-item.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-itemtype.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-loot.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-loottype.o: In function `ItemType::is_money() const':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-money.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-weapon.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-weapontype.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-shop.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-log.o: In function `operator<< <std::char_traits<char> >':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-locations.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-initfile.o: In function `mvaddstr':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
crimesquad-world.o: In function `__gnu_cxx::new_allocator<Location*>::deallocate(Location**, unsigned long)':
/media/data/programming/cpp/lcsgame/src/./includes.h:163: multiple definition of `mvaddstr'
crimesquad-game.o:/media/data/programming/cpp/lcsgame/src/includes.h:163: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [crimesquad] Error 1
make[2]: Leaving directory `/media/data/programming/cpp/lcsgame/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/data/programming/cpp/lcsgame'
make: *** [all] Error 2
Logged
I am confused are you saying you changed the kidnapping so it is less... Saw?
Did Saw consist of you beating them then yelling Ronald Reagan in their face?

tahujdt

  • Bay Watcher
  • The token conservative
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #123 on: April 30, 2013, 12:10:44 am »

Two things: firstly, the CCS should come to attack you automatically if you're well known, even if there's no heat on you. Second, the first time they attack, there should only be five members, tops. That's the max that'll fit into a pickup truck. After you drive them back, then multiple pickup trucks should come by later. I just was thinking of how many CCS members currently come in one truck.

A screeching clown car pulls up to the safe house!
Circus members pour out of it and start throwing pies at the windows!
Logged
DFBT the Dwarf: The only community podcast for Dwarf Fortress!
Tahu-R-TOA-1, Troubleshooter
Quote
I suggest that we add a clause permitting the keelhauling of anyone who suggests a plan involving "zombify the crew".
Quote from: MNII
Friend Computer, can you repair the known universe, please?

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #124 on: April 30, 2013, 12:19:22 am »

- errors -

Try again? At this point I'm writing code for a platform I can't compile on, so it's dodgy going. Hopefully that's the end of it.

Two things: firstly, the CCS should come to attack you automatically if you're well known, even if there's no heat on you. Second, the first time they attack, there should only be five members, tops. That's the max that'll fit into a pickup truck. After you drive them back, then multiple pickup trucks should come by later. I just was thinking of how many CCS members currently come in one truck.

A screeching clown car pulls up to the safe house!
Circus members pour out of it and start throwing pies at the windows!

Hm, good point. Or maybe they're really packed into the flat bed of the pickup truck!
Logged

Jboy2000000

  • Bay Watcher
  • Hello good people of the interwebs!
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #125 on: April 30, 2013, 12:23:02 am »

Can we get clown raids though? That sounds like it would be awesome! A clown car would be cool to. Maybe a circus location? All random people, clowns, and maybe some lions to liberalize?
Logged
"Wanna be a better liberal? Go get shot in the fuckin' face."

Just goes to show, even a Male Doctor that Looks Like a Female and a Criminal with Poor Hygiene Habits can fall in love.

seth--

  • Bay Watcher
  • We need a slogan!
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #126 on: April 30, 2013, 02:13:43 am »

Can we get clown raids though? That sounds like it would be awesome! A clown car would be cool to. Maybe a circus location? All random people, clowns, and maybe some lions to liberalize?
Please put bears there. I want to play as sir bearington.


- errors -

Try again? At this point I'm writing code for a platform I can't compile on, so it's dodgy going. Hopefully that's the end of it.

Hm, good point. Or maybe they're really packed into the flat bed of the pickup truck!
[/quote]
It compiles but doesn't work:
Code: [Select]
What is your name to the People?
Press enter to be known by your real name instead.

Segmentation fault (core dumped)


Would it be usefull for you to have a website indicating if the latest revision compiles in linux?
Logged
I am confused are you saying you changed the kidnapping so it is less... Saw?
Did Saw consist of you beating them then yelling Ronald Reagan in their face?

Jboy2000000

  • Bay Watcher
  • Hello good people of the interwebs!
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #127 on: April 30, 2013, 02:22:54 am »

Yeah, and we could have it be a place for animal rights, and at C+ animal rights it could be something like-
Animal Slave Entertainment Ring.
Logged
"Wanna be a better liberal? Go get shot in the fuckin' face."

Just goes to show, even a Male Doctor that Looks Like a Female and a Criminal with Poor Hygiene Habits can fall in love.

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #128 on: April 30, 2013, 03:22:40 am »

It compiles but doesn't work:
Code: [Select]
What is your name to the People?
Press enter to be known by your real name instead.

Segmentation fault (core dumped)

I need more specific information about the crash; there's something like five hundred lines of code between that screen and the next. If you'd like to do some detective work, any call to getch() should:

1) Refresh the screen, drawing anything that has been requested.
2) Pause for input before continuing.

If you insert a couple strategic getch() calls, you can narrow down what part of the code is having a problem. A good place to start would be to put in two of these, one each immediately before and after the locheader() call on line 352 of basemode.cpp. Testing then, you could find out whether it crashes a) before the screen goes blank, b) after the screen goes blank, or c) after some stuff appears at the top of the screen. That would narrow it down significantly.

If it crashes between those (that is, after the screen goes blank and before some stuff appears at the top), you could to see if there's something wrong with the Location::getname(bool, bool) function defined on line 100 of locations.cpp; it's recently modified and tosses some pointers around, so it's possible it's the culprit. But then, it works fine on Windows, and in theory shouldn't be any different for Linux. So you'd have to test it.

I'd like to help more, but beyond offering suggestions, I don't have any practical way to hunt down a crash I can't reproduce or easily intuit a reason for.

Edit: Actually, I'm assuming this happened AFTER you pressed enter at the prompt. If it happened before... mm, then the crash is probably in the NCurses library, which is pretty unlikely. So I'm guessing it was indeed after you pressed enter.

Would it be usefull for you to have a website indicating if the latest revision compiles in linux?

Perhaps, but I'm not sure it'd be worth the work to put up. This was very unusual; I was writing code that only gets compiled when you're building for Linux, which I don't think I've ever done for LCS. This was the unusual situation where I was overloading a function that is implemented as a macro in NCurses (which we use for Linux) and a function in PDCurses (which we use for Windows). You can't overload macros, so I needed to undefine the NCurses and define a same-behavior inline function instead. The only reason that this guess-and-check thing was going on is that I was not aware that they were implemented differently at first, and once I did know, I was writing a bit of code that is encased in preprocessor directives to only compile with NCurses.
« Last Edit: April 30, 2013, 03:32:06 am by Jonathan S. Fox »
Logged

seth--

  • Bay Watcher
  • We need a slogan!
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #129 on: April 30, 2013, 03:57:11 am »

It happens after pressing enter. I will hunt down the bug when I have more time

If you want a linux shell to do it yourself, I can give you one in my vps.

IIRC there was a bug where it didn't compiled in linux a few days ago, also related to ncurses. Automating the build process and updating a website or sending an email in case of error is pretty easy, like 5 lines of shell scripting.



Logged
I am confused are you saying you changed the kidnapping so it is less... Saw?
Did Saw consist of you beating them then yelling Ronald Reagan in their face?

Capital Fish

  • Bay Watcher
  • "Hi Mister Dog!"
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #130 on: April 30, 2013, 08:05:12 am »

Two things: firstly, the CCS should come to attack you automatically if you're well known, even if there's no heat on you. Second, the first time they attack, there should only be five members, tops. That's the max that'll fit into a pickup truck. After you drive them back, then multiple pickup trucks should come by later. I just was thinking of how many CCS members currently come in one truck.

A screeching clown car pulls up to the safe house!
Circus members pour out of it and start throwing pies at the windows!

Does the game say they're specifically driving a pickup truck? I always assumed they were using a delivery truck, and had a small army waiting in the back.
Logged
Find the errors in the above post and win a prize!

Cheedows

  • Bay Watcher
  • Still a dwarf, right?
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #131 on: April 30, 2013, 03:41:40 pm »

Sometimes they do, such as when they pull a drive-by and blow up half your liberals. 
Logged

Vherid

  • Bay Watcher
  • [CREATURE:SLARK]
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #132 on: April 30, 2013, 06:29:53 pm »

Why not just do it technical style and have like 30 guys on the back?

tahujdt

  • Bay Watcher
  • The token conservative
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #133 on: April 30, 2013, 08:22:20 pm »

The ASCII videos won't work for me. Why?
Logged
DFBT the Dwarf: The only community podcast for Dwarf Fortress!
Tahu-R-TOA-1, Troubleshooter
Quote
I suggest that we add a clause permitting the keelhauling of anyone who suggests a plan involving "zombify the crew".
Quote from: MNII
Friend Computer, can you repair the known universe, please?

seth--

  • Bay Watcher
  • We need a slogan!
    • View Profile
Re: LCS 4.07.0 Download (Sneak Attacks, April 2013)
« Reply #134 on: May 01, 2013, 04:20:48 am »

It happens after pressing enter. I will hunt down the bug when I have more time

If you want a linux shell to do it yourself, I can give you one in my vps.

IIRC there was a bug where it didn't compiled in linux a few days ago, also related to ncurses. Automating the build process and updating a website or sending an email in case of error is pretty easy, like 5 lines of shell scripting.

Ran gdb:
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
Location::getname (this=0x411, shortname=shortname@entry=true, include_city=include_city@entry=false) at title/locations.cpp:104
104       if(this->front_business != -1)
Logged
I am confused are you saying you changed the kidnapping so it is less... Saw?
Did Saw consist of you beating them then yelling Ronald Reagan in their face?
Pages: 1 ... 7 8 [9] 10 11 ... 27