tipforeveryone Posted January 23, 2016 Share Posted January 23, 2016 Hello, I have bought Leadwerks: Professional Edition and started to learn with C++ (follow Aggror's Tutorials ) I am using Lubuntu and installed Code block, but when I tried to build and run, I received a build message What should I do ? I did exactly same as tutorial then stuck (sorry for my bad English) Quote Link to comment Share on other sites More sharing options...
Josh Posted January 23, 2016 Share Posted January 23, 2016 Add "Leadwerks::" before this to specify the namespace. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
tipforeveryone Posted January 24, 2016 Author Share Posted January 24, 2016 Thanks for your reply I added "Leadwerks::" but it displayed more errors I created "Blank Project" from Project Manager of Leadwerks. I heard that Steam version of Leadwerks does not support C++ but it was from 3.x version, and there is a DLC which help user use C++. Now Im not sure... Just don't know what was wrong, please Quote Link to comment Share on other sites More sharing options...
Josh Posted January 24, 2016 Share Posted January 24, 2016 That is definitely not right. I will check it out in the morning. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted January 24, 2016 Share Posted January 24, 2016 Are you using Leadwerks on Steam? This code works fine with the current build: #include "App.h" using namespace Leadwerks; App::App() : window(NULL), context(NULL), world(NULL), camera(NULL) {} App::~App() { delete world; delete window; } Model* model = NULL; bool App::Start() { //Create a window window = Leadwerks::Window::Create(); context = Context::Create(window); world = World::Create(); camera = Camera::Create(); camera->Move(0,0,-3); Light* light = DirectionalLight::Create(); light->SetRotation(35,35,0); //Create a model model = Model::Box(); model->SetColor(0.0,0.0,1.0); return true; } bool App::Loop() { if (window->Closed() || window->KeyDown(Key::Escape)) return false; model->Turn(0,Leadwerks::Time::GetSpeed(),0); Leadwerks::Time::Update(); world->Update(); world->Render(); context->Sync(false); return true; } Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
thehankinator Posted January 25, 2016 Share Posted January 25, 2016 Undefined reference sounds like a linker problem. Have you verified you are linking to the Leadwerks library? Maybe post the whole build log. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 25, 2016 Share Posted January 25, 2016 The generated project will link to whatever location the Steam files are installed in. It should just work automatically. But yeah, it sounds like it can't find the SO file. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.