Multiple source files in a C/C++ Application project ( NetBeans ) -


i created new c/c++ project via file > new project > c/c++ > c/c++ application.

however, under source files folder, 1 source file main allowed.

is there way include more 1 main source file in source files folder ?

or have create new project each source file ?

in contrast, each java project, there can many .java files in it. trying find same functionality c/c++ applications.

thanks.

for same project have many source files *.c , *.h , others

but same project have 1 main() function in of source files

example:

code architecture:

. └── source_folder     ├── file1.c     ├── file2.c     └── main.c 

file1.c

#include <stdio.h>  void printfile1() {     printf("this file1.c\n"); } 

file2.c

#include <stdio.h>  void printfile2() {     printf("this file2.c\n"); } 

main.c

#include <stdio.h>  void printfile1(); //prototype definition void printfile2(); //prototype definition  int main() {     printfile1();     printfile2(); } 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

python - cx_oracle unable to find Oracle Client -