Cannot find libtcod.hpp on Xcode on MacOS Mojave even though it is included?
I'm trying to create my own game through the libtcod library on MacOS. I've installed the library for mac and made sure that all the files are in the folder. When I try to test my code in Xcode, it says that the header file (libtcod.hpp)
cannot be found. I already included all the files in the frameworks and libraries section so it doesn't exactly make sense as to why the code cannot find the header file.
Here's the tutorial I'm following: http://www.roguebasin.com/index.php?title=Complete_roguelike_tutorial_using_C%2B%2B_and_libtcod_-_part_1:_setting_up#Installing_the_compiler
Screenshot of the code: https://imgur.com/1O48PxP
libtcod
add a comment |
I'm trying to create my own game through the libtcod library on MacOS. I've installed the library for mac and made sure that all the files are in the folder. When I try to test my code in Xcode, it says that the header file (libtcod.hpp)
cannot be found. I already included all the files in the frameworks and libraries section so it doesn't exactly make sense as to why the code cannot find the header file.
Here's the tutorial I'm following: http://www.roguebasin.com/index.php?title=Complete_roguelike_tutorial_using_C%2B%2B_and_libtcod_-_part_1:_setting_up#Installing_the_compiler
Screenshot of the code: https://imgur.com/1O48PxP
libtcod
Welcome to SO!. Did you definitely complete the stepThen you'll have to copy those files from the libtcod directory to your project directory
. Maybe you could post the directory structure?
– Dean coakley
Nov 14 '18 at 0:32
@Deancoakley I did copy all files from libtcod into my include folder and then linked that to XCode, i may have linked the wrong files however not too sure. Image for Frameworks/Library: imgur.com/a/cNla07r Image of project directory: imgur.com/a/iqVEZdz
– Aqeel
Nov 14 '18 at 1:15
add a comment |
I'm trying to create my own game through the libtcod library on MacOS. I've installed the library for mac and made sure that all the files are in the folder. When I try to test my code in Xcode, it says that the header file (libtcod.hpp)
cannot be found. I already included all the files in the frameworks and libraries section so it doesn't exactly make sense as to why the code cannot find the header file.
Here's the tutorial I'm following: http://www.roguebasin.com/index.php?title=Complete_roguelike_tutorial_using_C%2B%2B_and_libtcod_-_part_1:_setting_up#Installing_the_compiler
Screenshot of the code: https://imgur.com/1O48PxP
libtcod
I'm trying to create my own game through the libtcod library on MacOS. I've installed the library for mac and made sure that all the files are in the folder. When I try to test my code in Xcode, it says that the header file (libtcod.hpp)
cannot be found. I already included all the files in the frameworks and libraries section so it doesn't exactly make sense as to why the code cannot find the header file.
Here's the tutorial I'm following: http://www.roguebasin.com/index.php?title=Complete_roguelike_tutorial_using_C%2B%2B_and_libtcod_-_part_1:_setting_up#Installing_the_compiler
Screenshot of the code: https://imgur.com/1O48PxP
libtcod
libtcod
edited Nov 14 '18 at 6:31
Cœur
17.7k9106145
17.7k9106145
asked Nov 14 '18 at 0:22
AqeelAqeel
112
112
Welcome to SO!. Did you definitely complete the stepThen you'll have to copy those files from the libtcod directory to your project directory
. Maybe you could post the directory structure?
– Dean coakley
Nov 14 '18 at 0:32
@Deancoakley I did copy all files from libtcod into my include folder and then linked that to XCode, i may have linked the wrong files however not too sure. Image for Frameworks/Library: imgur.com/a/cNla07r Image of project directory: imgur.com/a/iqVEZdz
– Aqeel
Nov 14 '18 at 1:15
add a comment |
Welcome to SO!. Did you definitely complete the stepThen you'll have to copy those files from the libtcod directory to your project directory
. Maybe you could post the directory structure?
– Dean coakley
Nov 14 '18 at 0:32
@Deancoakley I did copy all files from libtcod into my include folder and then linked that to XCode, i may have linked the wrong files however not too sure. Image for Frameworks/Library: imgur.com/a/cNla07r Image of project directory: imgur.com/a/iqVEZdz
– Aqeel
Nov 14 '18 at 1:15
Welcome to SO!. Did you definitely complete the step
Then you'll have to copy those files from the libtcod directory to your project directory
. Maybe you could post the directory structure?– Dean coakley
Nov 14 '18 at 0:32
Welcome to SO!. Did you definitely complete the step
Then you'll have to copy those files from the libtcod directory to your project directory
. Maybe you could post the directory structure?– Dean coakley
Nov 14 '18 at 0:32
@Deancoakley I did copy all files from libtcod into my include folder and then linked that to XCode, i may have linked the wrong files however not too sure. Image for Frameworks/Library: imgur.com/a/cNla07r Image of project directory: imgur.com/a/iqVEZdz
– Aqeel
Nov 14 '18 at 1:15
@Deancoakley I did copy all files from libtcod into my include folder and then linked that to XCode, i may have linked the wrong files however not too sure. Image for Frameworks/Library: imgur.com/a/cNla07r Image of project directory: imgur.com/a/iqVEZdz
– Aqeel
Nov 14 '18 at 1:15
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291410%2fcannot-find-libtcod-hpp-on-xcode-on-macos-mojave-even-though-it-is-included%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291410%2fcannot-find-libtcod-hpp-on-xcode-on-macos-mojave-even-though-it-is-included%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to SO!. Did you definitely complete the step
Then you'll have to copy those files from the libtcod directory to your project directory
. Maybe you could post the directory structure?– Dean coakley
Nov 14 '18 at 0:32
@Deancoakley I did copy all files from libtcod into my include folder and then linked that to XCode, i may have linked the wrong files however not too sure. Image for Frameworks/Library: imgur.com/a/cNla07r Image of project directory: imgur.com/a/iqVEZdz
– Aqeel
Nov 14 '18 at 1:15