Hello friends,
I am writing a C code...
Now it become very long about 10000 lines...and have so many globle variables...cause these all variables are used in all user defined functions.....
Now I am thinking to split in small files like a small programe as follow..It complie fine but not creating any build..in VC++ (I am using VC++ for C programing)...
Main programe.....
Code:
#include "stdafx.h"
#include<stdio.h>
#include<stdlib.h>
#include<fcntl.h>
#include<io.h>
#include<process.h>
#include<math.h>
#include <malloc.h>
#define _CRT_SECURE_NO_WARNINGS
#include "resize.cpp"
void main()
{
printf("\ntest ");
resize_cell_pointer2();
}
small program for in resize.cpp file(I kept all *.cpp files in same folder)
Code:
void resize_cell_pointer2()
{
printf("\ntest sucess");
}
This compile it fine but it doesnt Build....!!! I dont know why.....I tried lot but it is going me error messege as follow.
>------ Build started: Project: 3d_new, Configuration: Debug Win32 ------
1>Compiling...
1>resize.cpp
1>c:\users\umesh\program\3d_new\3d_new\resize.cpp( 5) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Build log was saved at "file://c:\Users\umesh\program\3d_new\3d_new\Debug\BuildLo g.htm"
1>3d_new - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Please help me for this small problem.
Thanks in Advance
Umesh Javiya