error: 'memset' was not declared in this scope

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Miramor
ISO Party Member
ISO Party Member
Posts: 410
Joined: Tue Jun 26, 2007 7:15 pm

error: 'memset' was not declared in this scope

Post by Miramor »

WHen trying to compile VS I get this:

Code: Select all

objconv/mesher/from_obj.cpp:443: error: ‘memset’ was not declared in this scope
make[1]: *** [objconv/mesher/mesher-from_obj.o] Error 1
make[1]: Leaving directory `/home/proteus/Games/Vega Strike/vegastrike'
make: *** [all] Error 2
Even though ./configure does find memset. What gives?
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

objconv/mesher
That's in mesher so f you don't need to convert models to put them in-game you should be good to go :D i have also been having a few errors compiling Mesher lately no big deal as you don't need it to run the game.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Gotti
Atmospheric Pilot
Atmospheric Pilot
Posts: 1
Joined: Fri Jun 27, 2008 12:47 pm

Post by Gotti »

Hi,

the problem is you seem to use a gcc-4.3.x compiler. I had the same sort of error and there is a simple solution.

add

#include <cstring>

to the beginning of the file objconv/mesher/from_obj.cpp and the error should disappear.


:)
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

Welcome Gotti thx for the work-around i wonder if the cmake is more up to date than the old auto-tools scripts :shock:

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

this was fixed in 12381.
Ed Sweetman endorses this message.
Post Reply