Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/12/03 14:31
Read: times


 
#58383 - help!compile error!!
i have a implement c file can't pass compiling process,and more trouble,i can't identify the
error source.

following is the code till the line where keil c51
prompts me there is an syntax error (the last line).
---------------------------------------------------

#include "reg1210.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "Timer.h"
#include "ADC.h"
#include "DataStruct.h"

#define low 0
#define high 1
#define Enable 0
#define Disable 1
#define SET 1
#define CLEAR 0
#define s 10
#define OneUE 475.308

sbit LowUpSel = P2^7; // line 20

-------------------------------------------------
following is the error message:

ADC.C(20): error C141: syntax error near 'sbit'


can anyone help me out or just give me some hint?
any ideas is appreciate!

List of 17 messages in thread
TopicAuthorDate
help!compile error!!            01/01/70 00:00      
   RE: help!compile error!!            01/01/70 00:00      
      RE: help!compile error!!            01/01/70 00:00      
   more compile information!            01/01/70 00:00      
   RE: help!compile error!!            01/01/70 00:00      
      RE: help!compile error!!            01/01/70 00:00      
   Preprocessor?            01/01/70 00:00      
   RE: help!compile error!!            01/01/70 00:00      
      RE: help!compile error!!            01/01/70 00:00      
         RE: help!compile error!!            01/01/70 00:00      
            Preprocessor misconceptions            01/01/70 00:00      
               RE: Preprocessor misconceptions            01/01/70 00:00      
   RE: help!compile error!!            01/01/70 00:00      
      RE: help!compile error!!            01/01/70 00:00      
         RE: help!compile error!!            01/01/70 00:00      
      RE:compile error!! which compiler?            01/01/70 00:00      
         RE: RE:compile error!! which compiler?            01/01/70 00:00      

Back to Subject List