thecherno / projecttemplate Goto Github PK
View Code? Open in Web Editor NEWA little quick-start project template for C++ projects which utilise a Core/App project architecture
License: The Unlicense
A little quick-start project template for C++ projects which utilise a Core/App project architecture
License: The Unlicense
Hey so I followed alongside your How to Properly Setup C++ Projects video and used this template. I included GLFW and GLEW into the Core project (as much of the core engine is using these libraries), and I linked the two libraries in the Editor and Runtime projects. The result is a working game engine, but the console is spammed with a bunch of link warning 4217. I'm not one to disable warnings, but the project is running smoothly. After some research I've come to the conclusion that since the Core project (a static library) is including the header files of GLEW and GLFW but not the implementations, when the compiler tries to replace all the function calls from GLEW or GLFW in the Core project files, they're using symbol names (such as "__glewAttachShader") instead of their corresponding function names which get replaced in the Editor and Runtime projects. Is there a work-around to this? Or a way to fix these warnings?
Here's an example of a full warning:
LINK : warning LNK4217: symbol '__glewAttachShader' defined in 'glew32s.lib(glew.obj)' is imported by 'Main.obj' in function 'main'
I changed the kind of my Core to kind "SharedLib"
and in my App which is kind "ConsoleApp"
I have
includedirs
{
"Source",
-- Include Core
"../Core/Source"
}
links
{
"Core"
}
I have set my App as the startproject
. I run the batch file, open the solution, and press F5.
I get a build error saying LNK1104 cannot open file '\Binaries\windows-x86_64\Debug\Core\Core.lib'
Why is it looking for a .lib file and not a .dll file? Do I need to change something else? The .dll file does exist.
Hey there! I got sent here from your video "How to Properly Setup C++ Projects." One of the reasons I wanted to check out this template is because I thought it would be cross-platform. Which it is... except for Mac ๐ข. In the video, you mentioned it wouldn't be hard to do, so if you could do that, that would be awesome! Also, the readme says, "You can duplicate the Linux script and adjust accordingly," but I have no idea how to even start on that, so if you could maybe explain that if you don't want to make it for Mac, that would be helpful.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.