Sturm 270 Veteran Poster

This is my run command:

g++ new\ file.cpp -o new\ file -lalleg

This is my code:

#include <allegro.h>


int main(){

allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);

readkey();

return 0;

}
END_OF_MAIN();

This is my error:

new file.cpp:2:21: error: allegro.h: No such file or directory
new file.cpp: In function ‘int main()’:
new file.cpp:7: error: ‘allegro_init’ was not declared in this scope
new file.cpp:8: error: ‘install_keyboard’ was not declared in this scope
new file.cpp:9: error: ‘GFX_AUTODETECT’ was not declared in this scope
new file.cpp:9: error: ‘set_gfx_mode’ was not declared in this scope
new file.cpp:11: error: ‘readkey’ was not declared in this scope
new file.cpp: At global scope:
new file.cpp:16: error: expected constructor, destructor, or type conversion before ‘;’ token
Sturm 270 Veteran Poster

I tried to compile my example file with the following command "g++ new\ file.cpp -o new\ file -lalleg". It returned the usual doesn't recognize my functions etc. Am I missing something?

Sturm 270 Veteran Poster

I use the g++ compiler for linux and i am trying to link allegro. how do i link allegro with g++?

Sturm 270 Veteran Poster

Thanks. I followed the instruction exactly and It worked!

Sturm 270 Veteran Poster

I checked my packages under synaptic and It says that I already have the
"nvidia-kernel-common." Does this mean I do not need to build another kernel?

Sturm 270 Veteran Poster

I am new to linux and I just installed ubuntu on my hp dv6000t laptop. I try to download the nvidia-glx but when I try to install it with the command "sudo nvidia-glx-config enable" command it returns the following:

Error: unable to load nvidia kernel driver! Be sure to have installed
the nvidia driver for your running kernel.

I checked to see if i had the right kernel but i did. Can someone help me?

Sturm 270 Veteran Poster

thanks I will look in to it

Sturm 270 Veteran Poster

I use the dev c++ IDE and was wondering if there is anyway in c++ or using system commands to send text packages to another computer that can be received by the other computer to process the information.

Sturm 270 Veteran Poster

I recommend that you get the dev c++ bloodshed IDE and then go to devpaks.org and download allegro to get into "cool" graphical programming. Command prompt stuff does not impress friends very much...

Sturm 270 Veteran Poster

I have a gp2x and was wondering if anybody else has one? They do not seem to popular...

Sturm 270 Veteran Poster

I run windows xp and I am looking to increase performence. I have already replaced the shell "explorer.exe" with "cmd.exe" and am looking to further increase my system's efficency. What system processes can I terminate and what system processes can I assign low memory priority?

Sturm 270 Veteran Poster

Is there a way to start program not via dos? Im writng a shell script after all...it's kind of cheating...

Sturm 270 Veteran Poster

thanks!

Sturm 270 Veteran Poster

Addiction is not my problem...

Sturm 270 Veteran Poster

I am writing a small shell script for windows just for fun and was wondering how to open executable programs? Can c++ do this?

Sturm 270 Veteran Poster

I would recommend that you install dev bloodshed . then go to devpaks.org to install allegro. then go to cppgameprogramming.com for some tutorials.