velmarin wrote: drj4759 wrote: Hi! Velmarin,
Code:
//#include <dlfcn.h> /* dynamic load */
#define HMODULE void *
Outside, no more.
Ask what needed or files happened, when you have time.
I compiled with Visual C, but with Intel Compiler.
1. I switched to Intel 2013 under VS and then commented out the "#include <dlfcn.h>. I got the following message:
1>RobboGains.c(38): error : cannot open source file "dlfcn.h"
1> #include <dlfcn.h> /* dynamic load */
1> ^
1>
1> compilation aborted for RobboGains.c (code 4)
1>
1>Build FAILED.
2. Opened RobboGains.c and commented out again "#include <dlfcn.h>" which spits out the following:
1>RobboGains.c(105): warning #266: function "dlopen" declared implicitly
1> so_file = DL_OPEN (STRING, RTLD_LAZY); /* local */
1> ^
1>
1>RobboGains.c(105): error : identifier "RTLD_LAZY" is undefined
1> so_file = DL_OPEN (STRING, RTLD_LAZY); /* local */
1> ^
1>
1>RobboGains.c(105): warning #556: a value of type "int" cannot be assigned to an entity of type "void *"
1> so_file = DL_OPEN (STRING, RTLD_LAZY); /* local */
1> ^
1>
1>RobboGains.c(114): warning #266: function "dlerror" declared implicitly
1> GAIN (RobboTotalLibScore);
1> ^
1>
1>RobboGains.c(114): warning #266: function "dlsym" declared implicitly
1> GAIN (RobboTotalLibScore);
1> ^
1>
1>RobboGains.c(114): warning #556: a value of type "int" cannot be assigned to an entity of type "unsigned char (*)(Type_PiSq *, unsigned char *, int)"
1> GAIN (RobboTotalLibScore);
1> ^
1>
1>RobboGains.c(114): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboTotalLibScore);
1> ^
1>
1>RobboGains.c(115): warning #556: a value of type "int" cannot be assigned to an entity of type "unsigned char (*)(Type_PiSq *, int *, int)"
1> GAIN (RobboTripleLibScore);
1> ^
1>
1>RobboGains.c(115): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboTripleLibScore);
1> ^
1>
1>RobboGains.c(116): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(char *)"
1> GAIN (GetRobboBaseLibraryVersion);
1> ^
1>
1>RobboGains.c(116): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (GetRobboBaseLibraryVersion);
1> ^
1>
1>RobboGains.c(118): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)(char *)"
1> GAIN (RegisterTotalBases);
1> ^
1>
1>RobboGains.c(118): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RegisterTotalBases);
1> ^
1>
1>RobboGains.c(119): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)()"
1> GAIN (DeRegisterTotalBases);
1> ^
1>
1>RobboGains.c(119): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (DeRegisterTotalBases);
1> ^
1>
1>RobboGains.c(120): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(char *)"
1> GAIN (RegisterRobboTotalBasesInDirectory);
1> ^
1>
1>RobboGains.c(120): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RegisterRobboTotalBasesInDirectory);
1> ^
1>
1>RobboGains.c(121): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)(int)"
1> GAIN (SetCacheTotalBase);
1> ^
1>
1>RobboGains.c(121): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (SetCacheTotalBase);
1> ^
1>
1>RobboGains.c(122): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)(Type_PiSq *)"
1> GAIN (HAS_TotalBase);
1> ^
1>
1>RobboGains.c(122): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (HAS_TotalBase);
1> ^
1>
1>RobboGains.c(124): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)(int)"
1> GAIN (SetCacheTripleBase);
1> ^
1>
1>RobboGains.c(124): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (SetCacheTripleBase);
1> ^
1>
1>RobboGains.c(125): warning #556: a value of type "int" cannot be assigned to an entity of type "unsigned char (*)(unsigned char)"
1> GAIN (SetLoadOnWeakProbeBackGround);
1> ^
1>
1>RobboGains.c(125): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (SetLoadOnWeakProbeBackGround);
1> ^
1>
1>RobboGains.c(126): warning #556: a value of type "int" cannot be assigned to an entity of type "unsigned char (*)()"
1> GAIN (AllowBackGroundLoader);
1> ^
1>
1>RobboGains.c(126): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (AllowBackGroundLoader);
1> ^
1>
1>RobboGains.c(127): warning #556: a value of type "int" cannot be assigned to an entity of type "unsigned char (*)()"
1> GAIN (PauseBackGroundLoader);
1> ^
1>
1>RobboGains.c(127): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (PauseBackGroundLoader);
1> ^
1>
1>RobboGains.c(129): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)(char *)"
1> GAIN (LoadTripleBases);
1> ^
1>
1>RobboGains.c(129): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (LoadTripleBases);
1> ^
1>
1>RobboGains.c(130): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)()"
1> GAIN (UnLoadTripleBases);
1> ^
1>
1>RobboGains.c(130): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (UnLoadTripleBases);
1> ^
1>
1>RobboGains.c(131): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(char *)"
1> GAIN (LoadRobboTripleBasesInDirectory);
1> ^
1>
1>RobboGains.c(131): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (LoadRobboTripleBasesInDirectory);
1> ^
1>
1>RobboGains.c(132): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)(Type_PiSq *)"
1> GAIN (HAS_TripleBase);
1> ^
1>
1>RobboGains.c(132): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (HAS_TripleBase);
1> ^
1>
1>RobboGains.c(134): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(char *)"
1> GAIN (RobboLibBulkLoadFile);
1> ^
1>
1>RobboGains.c(134): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboLibBulkLoadFile);
1> ^
1>
1>RobboGains.c(135): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(char *)"
1> GAIN (RobboLibBulkDetachFile);
1> ^
1>
1>RobboGains.c(135): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboLibBulkDetachFile);
1> ^
1>
1>RobboGains.c(136): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(char *)"
1> GAIN (RobboLibBulkLoadDirectory);
1> ^
1>
1>RobboGains.c(136): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboLibBulkLoadDirectory);
1> ^
1>
1>RobboGains.c(137): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(char *)"
1> GAIN (RobboLibBulkDetachDirectory);
1> ^
1>
1>RobboGains.c(137): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboLibBulkDetachDirectory);
1> ^
1>
1>RobboGains.c(139): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(unsigned char)"
1> GAIN (RobboBaseLibStartUp);
1> ^
1>
1>RobboGains.c(139): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboBaseLibStartUp);
1> ^
1>
1>RobboGains.c(140): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)()"
1> GAIN (RobboBaseLibExit);
1> ^
1>
1>RobboGains.c(140): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (RobboBaseLibExit);
1> ^
1>
1>RobboGains.c(142): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(Type_PiSq *, char *)"
1> GAIN (TotalBase_FileNames);
1> ^
1>
1>RobboGains.c(142): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (TotalBase_FileNames);
1> ^
1>
1>RobboGains.c(143): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(Type_PiSq *, char *)"
1> GAIN (TripleBase_FileNames);
1> ^
1>
1>RobboGains.c(143): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (TripleBase_FileNames);
1> ^
1>
1>RobboGains.c(144): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(Type_PiSq *, char *)"
1> GAIN (FilesInfo_TotalBase);
1> ^
1>
1>RobboGains.c(144): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (FilesInfo_TotalBase);
1> ^
1>
1>RobboGains.c(145): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)(Type_PiSq *, char *)"
1> GAIN (FilesInfo_TripleBase);
1> ^
1>
1>RobboGains.c(145): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (FilesInfo_TripleBase);
1> ^
1>
1>RobboGains.c(146): warning #556: a value of type "int" cannot be assigned to an entity of type "int (*)()"
1> GAIN (GetMaximumTriplePieces);
1> ^
1>
1>RobboGains.c(146): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (GetMaximumTriplePieces);
1> ^
1>
1>RobboGains.c(147): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)()"
1> GAIN (ResetTripleCounters);
1> ^
1>
1>RobboGains.c(147): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (ResetTripleCounters);
1> ^
1>
1>RobboGains.c(148): warning #556: a value of type "int" cannot be assigned to an entity of type "void (*)()"
1> GAIN (SendTripleCounters);
1> ^
1>
1>RobboGains.c(148): warning #556: a value of type "int" cannot be assigned to an entity of type "char *"
1> GAIN (SendTripleCounters);
1> ^
1>
1> compilation aborted for RobboGains.c (code 2)
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.60
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It's a mess. I'm curious, "#include <dlfcn.h>" is not included in the ComStock 1.02 source.