User forums > Help

Can't Open Code::Blocks (Windows 8.1 machine)

<< < (3/4) > >>

DragonOsman2:
Okay, I'll say it then: I didn't specify a folder to save the Project in.  The translated path for the file was then designated as "<invalid path>".

And it seems l'm still getting that one error message when I try to build a program.  The error message is: "fatal error LNK1104: cannot open file 'kernel32.lib'".  So I still need help there.

stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

DragonOsman2:
I downloaded Windows SDKs and Added the Kernel32.lib file into the Compiler in Linker settings.  Now I'm able to build programs without getting that error. 

I couldn't use the command "cl" on my Command Prompt; it kept saying that it's not a valid command for internal or external operations (I was using Command Prompt with Admin and Developer rights).  I might need to have it show me a list of commands so I can see what the valid command is for accessing the command line.  If there is one.  But I don't know the command for that.

oBFusCATed:

--- Quote from: DragonOsman2 on December 05, 2013, 10:55:45 am ---I couldn't use the command "cl" on my Command Prompt;

--- End quote ---
You have to setup you env variables in order to get this. Most of the times there is a bat file that does this, but I don't know if the SDK ships with it.
The Visual studio installations have it.

DragonOsman2:
I have the Visual Studio C++ 2010 version.  The language I'm actually using right now is just C, though, not C++.  I'm a beginner in programming and I thought I'd start with C.

That said, I currently keep having errors all of a sudden; I got these errors: ..\ex0504\main.c|8|error C2059: syntax error : ')'|
..\ex0504\main.c|9|error C2065: 'OCTO' : undeclared identifier|
..\ex0504\main.c|9|error C2146: syntax error : missing ')' before identifier 'OCTO'|
..\ex0504\main.c|10|error C2065: 'OCTO' : undeclared identifier|
..\ex0504\main.c|10|error C2146: syntax error : missing ')' before identifier 'OCTO'|
..\ex0504\main.c|11|error C2065: 'OCTO' : undeclared identifier|
..\ex0504\main.c|11|error C2146: syntax error : missing ')' before identifier 'OCTO'|
||=== Build finished: 7 errors, 0 warnings (0 minutes, 0 seconds) ===|


And just in case, here's my source code: #include <stdio.h>

#define  VALUE 2 OCTO 8

int main()
{
    puts("Values VALUE and OCTO:");
    printf("Addition is %d\n",OCTO+VALUE;
    printf("Subtraction is %d\n",OCTO-VALUE);
    printf("Multiplication is %d\n",OCTO*VALUE);
    printf("Division is %d\n",OCTO/VALUE);
    return 0;
}

If there's something I'm doing wrong, please let me know. Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version