Hola muy buenas.
tengo una pequeña duda que no consigo solventar
Uso para compilar y programar C/C++ , Cygwin y Neatbeans como IDE 
he hecho un simple saludo inicial que al compilarlo no me da ningun problema dentro del IDE y puedo ver el resultado bien. 
pero al ejecutar el ejecutable EXE del programa compilado fuera del IDE pues la pausa no la hace para ver el Saludo  y se cierra el programa una vez ejecutado. lo he probado todo y no se porque pasa eso. 
her probado con system pause y con cin.get y nada
puede ser por el make file o que hago mal? 
helloworld.cc 
 Código PHP:
    #include<iostream>
#include<cstdlib>
 
using namespace std;
 
int main()
{
    
 
    cout << "Hello World";
 
 
    system("PAUSE");
    
    return 0; 
    cin.get();
} 
    
  makefile 
 Código PHP:
    #
#  There exist several targets which are by default empty and which can be 
#  used for execution of your targets. These targets are usually executed 
#  before and after some main targets. They are: 
#
#     .build-pre:              called before 'build' target
#     .build-post:             called after 'build' target
#     .clean-pre:              called before 'clean' target
#     .clean-post:             called after 'clean' target
#     .clobber-pre:            called before 'clobber' target
#     .clobber-post:           called after 'clobber' target
#     .all-pre:                called before 'all' target
#     .all-post:               called after 'all' target
#     .help-pre:                called before 'help' target
#     .help-post:               called after 'help' target
#
#  Targets beginning with '.' are not intended to be called on their own.
#
#  Main targets can be executed directly, and they are:
#  
#     build                    build a specific configuration
#     clean                    remove built files from a configuration
#     clobber                  remove all built files
#     all                      build all configurations
#     help                     print help mesage
#  
#  Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
#  .help-impl are implemented in nbproject/makefile-impl.mk.
#
# NOCDDL
 
 
# Environment 
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin
RANLIB=ranlib
 
 
# build
build: .build-pre .build-impl .build-post
 
.build-pre:
# Add your pre 'build' code here...
 
.build-post:
# Add your post 'build' code here...
 
 
# clean
clean: .clean-pre .clean-impl .clean-post
 
.clean-pre:
# Add your pre 'clean' code here...
 
.clean-post:
# Add your post 'clean' code here...
 
 
# clobber
clobber: .clobber-pre .clobber-impl .clobber-post
 
.clobber-pre:
# Add your pre 'clobber' code here...
 
.clobber-post:
# Add your post 'clobber' code here...
 
 
# all
all: .all-pre .all-impl .all-post
 
.all-pre:
# Add your pre 'all' code here...
 
.all-post:
# Add your post 'all' code here...
 
 
# help
help: .help-pre .help-impl .help-post
 
.help-pre:
# Add your pre 'help' code here...
 
.help-post:
# Add your post 'help' code here...
 
 
 
# include project implementation makefile
include nbproject/Makefile-impl.mk