Help C++ begginer

Hi my name is Leander (Leandro) I'm from South America.

I have been learning c++ for 6 days now, The peoblem is im using Linux and some stuff differs from tutorials
having solved them by looking on Google.

But even though there are some stuff that ins't too clear yet:

Why I cant open the application after released?:
I click it but nothing happens

Does this happens Because it doesn't have (.exe) extension.

I mean Im using Netbeans IDE I could run the application from the IDE, it opens a Terminal window.

but it doesnt do it when i double click it.

Please help me i wanna make it so when i double click it it opens on a terminal or a window if its possible to create one,

Since:
#include <windows.h>, wouldn't work

Here is my application http://code.google.com/p/my-first-aplication/downloads/list

Dont worry doesn't have viruses its clean. I would be glad if somebody could tell me whats wrong?.
Last edited on
If it's a console program, you'll have to run it from a terminal.
Another solution (if somewhat silly) is to create a shell script that opens a new terminal window, e.g.:
gnome-terminal -x yourprogram
Isnt other way even if could open a window itself something that could work on other O.S as well

If you want to open a window, you can use a windowing library such as wxWdigets, Qt, or SFML.

As for the console program, if you only use the standard C++ library (along with any other cross platform) libraries, then the console program's source code could be recompiled on another platform with a suitable compiler, e.g. MinGW/MSVC++ for Windows.
Bad thing is that most of them require that i learn a whole new lenguage like Qt thats very IDK hard!

and why i just can generate the window from the .cpp file not needing to use anything else.

And does the Qt wxWidgets or SFML needs to be installed on a PC first.

Yes, the need to be installed, and in most cases you must compile them yourself.

Building SFML seems to cause people trouble, but once you've done it, it fairly easy to make some basic multimedia applications from then on.

The developer has a good textual tutorial on the setup, and I have video ones for Visual Studio and Code::Blocks.
Thanks for the help yes its hard im gonna learn GTK cause seems easier also i would leanr to code well first b4 moving to advanced stuff
Topic archived. No new replies allowed.