Jump to content

[standalone] undefined reference to `SteamAPI_Init'


danieru
 Share

Recommended Posts

I can't compile any project in C++ due to a log with a bunch of errors, all related to Steam.

 

Full log:

||=== Build: Debug in testing (compiler: GNU GCC Compiler) ===|

/home/bran/Leadwerks/Include/Classes/Directory.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Directory.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Stream.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Stream.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Directory.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Directory.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Stream.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Stream.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|

/home/bran/Documentos/Leadwerks/Projects/testing/Source/main.cpp||In function 'int main(int, const char**)':|

/home/bran/Documentos/Leadwerks/Projects/testing/Source/main.cpp|58|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::Initialize()':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|68|undefined reference to `SteamAPI_Init'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|72|undefined reference to `SteamClient'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|73|undefined reference to `SteamUser'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|75|undefined reference to `SteamUtils'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|76|undefined reference to `SteamApps'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|77|undefined reference to `SteamFriends'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|78|undefined reference to `SteamUserStats'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|79|undefined reference to `SteamScreenshots'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|80|undefined reference to `SteamRemoteStorage'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|81|undefined reference to `SteamController'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::Shutdown()':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|407|undefined reference to `SteamAPI_Shutdown'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::PublishFile(std::string, std::string, std::string, std::string const&, std::vector&, int, int (*)(float), int, int)':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|582|undefined reference to `SteamAPI_RunCallbacks'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|597|undefined reference to `SteamAPI_RunCallbacks'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::InitializeController()':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|717|undefined reference to `SteamController'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::UpdateController()':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|729|undefined reference to `SteamController'|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|732|undefined reference to `SteamController'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::TriggerHapticPulse(int, int, int)':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|791|undefined reference to `SteamController'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetUserPublishedWorkshopFiles(std::vector&, EWorkshopEnumerationType, unsigned int, unsigned int, std::vector, std::vector)':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|965|undefined reference to `SteamAPI_RunCallbacks'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetAllWorkshopPackages(std::vector&, EWorkshopEnumerationType, unsigned int, unsigned int, std::vector, std::vector)':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1051|undefined reference to `SteamAPI_RunCallbacks'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetUserWorkshopFiles(unsigned int)':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1094|undefined reference to `SteamAPI_RunCallbacks'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetSubscribedWorkshopPackages(std::vector&, unsigned int)':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1126|undefined reference to `SteamAPI_RunCallbacks'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetFileInfo(unsigned long long, RemoteStorageGetPublishedFileDetailsResult_t&)':|

/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1165|undefined reference to `SteamAPI_RunCallbacks'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o):/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1217|more undefined references to `SteamAPI_RunCallbacks' follow|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageFileShareResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStoragePublishFileResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateUserPublishedFilesResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateWorkshopFilesResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateUserSubscribedFilesResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageGetPublishedFileDetailsResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageDownloadUGCResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageDeletePublishedFileResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageUpdatePublishedFileResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageUnsubscribePublishedFileResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageSubscribePublishedFileResult_t*, bool))':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|

/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|

/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|

||More errors follow but not being shown.|

||Edit the max errors limit in compiler options...|

||=== Build failed: 50 error(s), 17 warning(s) (0 minute(s), 9 second(s)) ===|

 

This is a recent bug because some time ago I could compile without seeing any of this errors.
Link to comment
Share on other sites

  • 2 months later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...