Hi,
I'm not a programmer and don't know how to fix this sort of thing.
Without going into details the following stuff is part of an SDK
package of freely licensed code that compiles (apparently) on a
Windows machine. However, on my Gentoo box I cannot find a set of
compiler parameters that will allow it to compile. I'm sure that
someone here has an idea. I need it for some stuff I'm doing in Wine.
//---Used by audioMasterOpenFileSelector-----------
struct VstFileType
{
VstFileType (char* _name, char *_macType, char *_dosType, char
*_unixType = 0, char *_mimeType1 = 0, char *_mimeType2 = 0)
{
if (_name)
strcpy (name, _name);
if (_macType)
strcpy (macType, _macType);
if (_dosType)
strcpy (dosType, _dosType);
if (_unixType)
strcpy (unixType, _unixType);
if (_mimeType1)
strcpy (mimeType1, _mimeType1);
if (_mimeType2)
strcpy (mimeType2, _mimeType2);
}
char name[128];
char macType[8];
char dosType[8];
char unixType[8];
char mimeType1[128];
char mimeType2[128];
};
If I delete out the first part, so that the structure looks like this:
//---Used by audioMasterOpenFileSelector-----------
struct VstFileType
{
char name[128];
char macType[8];
char dosType[8];
char unixType[8];
char mimeType1[128];
char mimeType2[128];
};
then it compiles fine.
Does someone know how I might tell gcc to compile the original?
If it cannot be done then that's fine too. As I say, I'm not a
programmer so this level of detail is already far beyond my skill set.
flash root # emerge info
Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.3.4,
glibc-2.3.4.20041006-r0, 2.6.9-rc2-mm4-VP-S7-UMP-noACPI i686)
Thanks,
Mark
--
gentoo-user@gentoo.org mailing list
I'm not a programmer and don't know how to fix this sort of thing.
Without going into details the following stuff is part of an SDK
package of freely licensed code that compiles (apparently) on a
Windows machine. However, on my Gentoo box I cannot find a set of
compiler parameters that will allow it to compile. I'm sure that
someone here has an idea. I need it for some stuff I'm doing in Wine.
//---Used by audioMasterOpenFileSelector-----------
struct VstFileType
{
VstFileType (char* _name, char *_macType, char *_dosType, char
*_unixType = 0, char *_mimeType1 = 0, char *_mimeType2 = 0)
{
if (_name)
strcpy (name, _name);
if (_macType)
strcpy (macType, _macType);
if (_dosType)
strcpy (dosType, _dosType);
if (_unixType)
strcpy (unixType, _unixType);
if (_mimeType1)
strcpy (mimeType1, _mimeType1);
if (_mimeType2)
strcpy (mimeType2, _mimeType2);
}
char name[128];
char macType[8];
char dosType[8];
char unixType[8];
char mimeType1[128];
char mimeType2[128];
};
If I delete out the first part, so that the structure looks like this:
//---Used by audioMasterOpenFileSelector-----------
struct VstFileType
{
char name[128];
char macType[8];
char dosType[8];
char unixType[8];
char mimeType1[128];
char mimeType2[128];
};
then it compiles fine.
Does someone know how I might tell gcc to compile the original?
If it cannot be done then that's fine too. As I say, I'm not a
programmer so this level of detail is already far beyond my skill set.
flash root # emerge info
Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.3.4,
glibc-2.3.4.20041006-r0, 2.6.9-rc2-mm4-VP-S7-UMP-noACPI i686)
Thanks,
Mark
--
gentoo-user@gentoo.org mailing list