Changes

Jump to: navigation, search

Team !YOU - Discussions

969 bytes added, 03:29, 12 February 2010
m
adding coding help section and posting problem
= Open Discussions =
Current open discussions
 
== Committing Practices ==
|}
<br/>
 
 
= Coding Help =
An area for working out problems with code.
 
== (ammisko) Problem Compiling With bio_init(); ==
I am having a problem getting my project code to compile in VCC and BCC. My main looks like...
 
main(){
bio_init();
int i = 0; /* line 58 */
printf("Press a key to return its key code, or press esc to exit loop.\n\n");
while (i != 27){
i = bio_getch();
printf("Key Code Returned: %d\n", i);
}
bio_end();
return 0;
}
 
I have also included <stdio.h> higher up in the biomain.c
 
 
When I attempt to compile the above code I get an error message like (this is VCC):
 
g:\school\oop344\prj_trunk\biomain.c(58) : error C2143: syntax error : missing ';' before 'type'
 
 
If I comment out bio_init(); in the main, the program compiles fine and runs exactly like it should. The code is in my branch if you want to see the whole thing.
 
 
{| class="wikitable" border="1"
|+
! Name !! Comment
|-
| ammisko || Anyone have any ideas?
|}
 
 
 
= Old Discussions =
1
edit

Navigation menu