Alain Magloire
2001-01-21 19:48:21 UTC
Bonjour
I've checked out the repository and try to compile it hear
With some minor changes for GNU/Linux, see patch below.
Nothing special, to recognise GNU C, the macro is __GNUC__ not __GCC__
and Linux it is __linux__ or "__linux" unfortunately this may vary
from gcc distribution, but the two systems that I've tested showed
__linux__
--
alain
Index: include/xplc/uuid.h
===================================================================
RCS file: /cvsroot/xplc/xplc/include/xplc/uuid.h,v
retrieving revision 1.5
diff -c -p -r1.5 uuid.h
*** include/xplc/uuid.h 2001/01/13 05:38:51 1.5
--- include/xplc/uuid.h 2001/01/21 19:33:37
*************** struct UUID {
*** 35,41 ****
};
};
! #ifdef __GCC__
#define DEFINE_UUID(symbol) const UUID symbol __attribute__((weak))
#endif
#ifdef _MSC_VER
--- 35,41 ----
};
};
! #ifdef __GNUC__
#define DEFINE_UUID(symbol) const UUID symbol __attribute__((weak))
#endif
#ifdef _MSC_VER
Index: xplc/simpledl.cpp
===================================================================
RCS file: /cvsroot/xplc/xplc/xplc/simpledl.cpp,v
retrieving revision 1.4
diff -c -p -r1.4 simpledl.cpp
*** xplc/simpledl.cpp 2001/01/16 13:42:13 1.4
--- xplc/simpledl.cpp 2001/01/21 19:33:37
***************
*** 19,25 ****
* 02111-1307, USA.
*/
! #ifdef __LINUX__
#include <dlfcn.h>
#endif
#ifdef WIN32
--- 19,25 ----
* 02111-1307, USA.
*/
! #ifdef __linux__
#include <dlfcn.h>
#endif
#ifdef WIN32
*************** IObject* SimpleDynamicLoader::createObje
*** 68,74 ****
}
const char* SimpleDynamicLoader::loadModule(const char* filename) {
! #ifdef __GCC__
const std::string file = std::string(filename) + ".so";
const char* err;
--- 68,74 ----
}
const char* SimpleDynamicLoader::loadModule(const char* filename) {
! #ifdef __GNUC__
const std::string file = std::string(filename) + ".so";
const char* err;
I've checked out the repository and try to compile it hear
With some minor changes for GNU/Linux, see patch below.
Nothing special, to recognise GNU C, the macro is __GNUC__ not __GCC__
and Linux it is __linux__ or "__linux" unfortunately this may vary
from gcc distribution, but the two systems that I've tested showed
__linux__
--
alain
Index: include/xplc/uuid.h
===================================================================
RCS file: /cvsroot/xplc/xplc/include/xplc/uuid.h,v
retrieving revision 1.5
diff -c -p -r1.5 uuid.h
*** include/xplc/uuid.h 2001/01/13 05:38:51 1.5
--- include/xplc/uuid.h 2001/01/21 19:33:37
*************** struct UUID {
*** 35,41 ****
};
};
! #ifdef __GCC__
#define DEFINE_UUID(symbol) const UUID symbol __attribute__((weak))
#endif
#ifdef _MSC_VER
--- 35,41 ----
};
};
! #ifdef __GNUC__
#define DEFINE_UUID(symbol) const UUID symbol __attribute__((weak))
#endif
#ifdef _MSC_VER
Index: xplc/simpledl.cpp
===================================================================
RCS file: /cvsroot/xplc/xplc/xplc/simpledl.cpp,v
retrieving revision 1.4
diff -c -p -r1.4 simpledl.cpp
*** xplc/simpledl.cpp 2001/01/16 13:42:13 1.4
--- xplc/simpledl.cpp 2001/01/21 19:33:37
***************
*** 19,25 ****
* 02111-1307, USA.
*/
! #ifdef __LINUX__
#include <dlfcn.h>
#endif
#ifdef WIN32
--- 19,25 ----
* 02111-1307, USA.
*/
! #ifdef __linux__
#include <dlfcn.h>
#endif
#ifdef WIN32
*************** IObject* SimpleDynamicLoader::createObje
*** 68,74 ****
}
const char* SimpleDynamicLoader::loadModule(const char* filename) {
! #ifdef __GCC__
const std::string file = std::string(filename) + ".so";
const char* err;
--- 68,74 ----
}
const char* SimpleDynamicLoader::loadModule(const char* filename) {
! #ifdef __GNUC__
const std::string file = std::string(filename) + ".so";
const char* err;