Cannot open file 'LIBCMT.lib' when using Code Blocks with VS 2017 Build Tools
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
First I solved the issue found here can't find stdio.h in new Visual Studio 2017 Community project which was largely on point except I'm using Code Blocks (17.12) with Visual Studio 2017 Build Tools only. After getting over that hurdle I encountered the issue referenced in my title, and also in this Q&A: LINK: fatal error LNK 1104: cannot open file 'LIBCMT.lib'
I do not, however, believe my question is an (exact) duplicate, since, for one, I'm using Code Blocks. Also I hope you can appreciate how thorough I've been before submitting this.
First I determined that the file was on my system at:
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023libx86
Its basename (before the extension) was all lower case though instead of upper as in the error message, so I tried changing it to upper case, which didn't work. In the error message I also noted that it says it cannot open the file, so I checked the permissions on the file; it allows read and execute permissions.
Within Code Blocks I adjusted a number of settings. For instance I referenced the file's directory in not one, but two places, to be on the safe side, in Code Block's compiler options: "Search directories", and "Toolchain executables/Additional Paths" (if you referred to the issue with not finding stdio.h that I solved, it was by adjusting one of these). Furthermore, I tried toggling between the compiler settings for compiling as C or C++. None of these settings worked.
So I tried a couple of ideas I got from the related Q&A. For one, I tried by running Code Blocks as administrator. Secondly, I ran vsvars64.bat. All to no avail.
For the time being I've exhausted all options I can think of. I hope it was ok to use language tags on this, C++ was used in the two Q&A's I reference.
Thanks in advance
c++ c codeblocks visual-studio-2017-build-tools
add a comment |
First I solved the issue found here can't find stdio.h in new Visual Studio 2017 Community project which was largely on point except I'm using Code Blocks (17.12) with Visual Studio 2017 Build Tools only. After getting over that hurdle I encountered the issue referenced in my title, and also in this Q&A: LINK: fatal error LNK 1104: cannot open file 'LIBCMT.lib'
I do not, however, believe my question is an (exact) duplicate, since, for one, I'm using Code Blocks. Also I hope you can appreciate how thorough I've been before submitting this.
First I determined that the file was on my system at:
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023libx86
Its basename (before the extension) was all lower case though instead of upper as in the error message, so I tried changing it to upper case, which didn't work. In the error message I also noted that it says it cannot open the file, so I checked the permissions on the file; it allows read and execute permissions.
Within Code Blocks I adjusted a number of settings. For instance I referenced the file's directory in not one, but two places, to be on the safe side, in Code Block's compiler options: "Search directories", and "Toolchain executables/Additional Paths" (if you referred to the issue with not finding stdio.h that I solved, it was by adjusting one of these). Furthermore, I tried toggling between the compiler settings for compiling as C or C++. None of these settings worked.
So I tried a couple of ideas I got from the related Q&A. For one, I tried by running Code Blocks as administrator. Secondly, I ran vsvars64.bat. All to no avail.
For the time being I've exhausted all options I can think of. I hope it was ok to use language tags on this, C++ was used in the two Q&A's I reference.
Thanks in advance
c++ c codeblocks visual-studio-2017-build-tools
Google "codeblocks set library path". First hit looks good, step 3/4D.
– Hans Passant
Nov 25 '18 at 15:50
@HansPassant Let me try but I've been down this road already, perhaps there are a couple of tweaks in there though
– George Jempty
Nov 25 '18 at 16:39
@HansPassant That actually did help, I specified libcmt.lib as one of the link libraries, then it complained about not finding oldnames.lib and I specified that too. Then I got past that error to some others however; still though, it's progress. When I figure it all out I may answer my own question, otherwise I may just switch to Visual Studio as the IDE
– George Jempty
Nov 25 '18 at 17:11
add a comment |
First I solved the issue found here can't find stdio.h in new Visual Studio 2017 Community project which was largely on point except I'm using Code Blocks (17.12) with Visual Studio 2017 Build Tools only. After getting over that hurdle I encountered the issue referenced in my title, and also in this Q&A: LINK: fatal error LNK 1104: cannot open file 'LIBCMT.lib'
I do not, however, believe my question is an (exact) duplicate, since, for one, I'm using Code Blocks. Also I hope you can appreciate how thorough I've been before submitting this.
First I determined that the file was on my system at:
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023libx86
Its basename (before the extension) was all lower case though instead of upper as in the error message, so I tried changing it to upper case, which didn't work. In the error message I also noted that it says it cannot open the file, so I checked the permissions on the file; it allows read and execute permissions.
Within Code Blocks I adjusted a number of settings. For instance I referenced the file's directory in not one, but two places, to be on the safe side, in Code Block's compiler options: "Search directories", and "Toolchain executables/Additional Paths" (if you referred to the issue with not finding stdio.h that I solved, it was by adjusting one of these). Furthermore, I tried toggling between the compiler settings for compiling as C or C++. None of these settings worked.
So I tried a couple of ideas I got from the related Q&A. For one, I tried by running Code Blocks as administrator. Secondly, I ran vsvars64.bat. All to no avail.
For the time being I've exhausted all options I can think of. I hope it was ok to use language tags on this, C++ was used in the two Q&A's I reference.
Thanks in advance
c++ c codeblocks visual-studio-2017-build-tools
First I solved the issue found here can't find stdio.h in new Visual Studio 2017 Community project which was largely on point except I'm using Code Blocks (17.12) with Visual Studio 2017 Build Tools only. After getting over that hurdle I encountered the issue referenced in my title, and also in this Q&A: LINK: fatal error LNK 1104: cannot open file 'LIBCMT.lib'
I do not, however, believe my question is an (exact) duplicate, since, for one, I'm using Code Blocks. Also I hope you can appreciate how thorough I've been before submitting this.
First I determined that the file was on my system at:
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023libx86
Its basename (before the extension) was all lower case though instead of upper as in the error message, so I tried changing it to upper case, which didn't work. In the error message I also noted that it says it cannot open the file, so I checked the permissions on the file; it allows read and execute permissions.
Within Code Blocks I adjusted a number of settings. For instance I referenced the file's directory in not one, but two places, to be on the safe side, in Code Block's compiler options: "Search directories", and "Toolchain executables/Additional Paths" (if you referred to the issue with not finding stdio.h that I solved, it was by adjusting one of these). Furthermore, I tried toggling between the compiler settings for compiling as C or C++. None of these settings worked.
So I tried a couple of ideas I got from the related Q&A. For one, I tried by running Code Blocks as administrator. Secondly, I ran vsvars64.bat. All to no avail.
For the time being I've exhausted all options I can think of. I hope it was ok to use language tags on this, C++ was used in the two Q&A's I reference.
Thanks in advance
c++ c codeblocks visual-studio-2017-build-tools
c++ c codeblocks visual-studio-2017-build-tools
edited Nov 25 '18 at 15:34
George Jempty
asked Nov 25 '18 at 1:51
George JemptyGeorge Jempty
7,1161162132
7,1161162132
Google "codeblocks set library path". First hit looks good, step 3/4D.
– Hans Passant
Nov 25 '18 at 15:50
@HansPassant Let me try but I've been down this road already, perhaps there are a couple of tweaks in there though
– George Jempty
Nov 25 '18 at 16:39
@HansPassant That actually did help, I specified libcmt.lib as one of the link libraries, then it complained about not finding oldnames.lib and I specified that too. Then I got past that error to some others however; still though, it's progress. When I figure it all out I may answer my own question, otherwise I may just switch to Visual Studio as the IDE
– George Jempty
Nov 25 '18 at 17:11
add a comment |
Google "codeblocks set library path". First hit looks good, step 3/4D.
– Hans Passant
Nov 25 '18 at 15:50
@HansPassant Let me try but I've been down this road already, perhaps there are a couple of tweaks in there though
– George Jempty
Nov 25 '18 at 16:39
@HansPassant That actually did help, I specified libcmt.lib as one of the link libraries, then it complained about not finding oldnames.lib and I specified that too. Then I got past that error to some others however; still though, it's progress. When I figure it all out I may answer my own question, otherwise I may just switch to Visual Studio as the IDE
– George Jempty
Nov 25 '18 at 17:11
Google "codeblocks set library path". First hit looks good, step 3/4D.
– Hans Passant
Nov 25 '18 at 15:50
Google "codeblocks set library path". First hit looks good, step 3/4D.
– Hans Passant
Nov 25 '18 at 15:50
@HansPassant Let me try but I've been down this road already, perhaps there are a couple of tweaks in there though
– George Jempty
Nov 25 '18 at 16:39
@HansPassant Let me try but I've been down this road already, perhaps there are a couple of tweaks in there though
– George Jempty
Nov 25 '18 at 16:39
@HansPassant That actually did help, I specified libcmt.lib as one of the link libraries, then it complained about not finding oldnames.lib and I specified that too. Then I got past that error to some others however; still though, it's progress. When I figure it all out I may answer my own question, otherwise I may just switch to Visual Studio as the IDE
– George Jempty
Nov 25 '18 at 17:11
@HansPassant That actually did help, I specified libcmt.lib as one of the link libraries, then it complained about not finding oldnames.lib and I specified that too. Then I got past that error to some others however; still though, it's progress. When I figure it all out I may answer my own question, otherwise I may just switch to Visual Studio as the IDE
– George Jempty
Nov 25 '18 at 17:11
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%2f53464002%2fcannot-open-file-libcmt-lib-when-using-code-blocks-with-vs-2017-build-tools%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%2f53464002%2fcannot-open-file-libcmt-lib-when-using-code-blocks-with-vs-2017-build-tools%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
Google "codeblocks set library path". First hit looks good, step 3/4D.
– Hans Passant
Nov 25 '18 at 15:50
@HansPassant Let me try but I've been down this road already, perhaps there are a couple of tweaks in there though
– George Jempty
Nov 25 '18 at 16:39
@HansPassant That actually did help, I specified libcmt.lib as one of the link libraries, then it complained about not finding oldnames.lib and I specified that too. Then I got past that error to some others however; still though, it's progress. When I figure it all out I may answer my own question, otherwise I may just switch to Visual Studio as the IDE
– George Jempty
Nov 25 '18 at 17:11