Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > compile errors....
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 25702 of 28006
Post > Topic >>

compile errors. pls help

by beet <whhggg@[EMAIL PROTECTED] > Apr 18, 2008 at 01:20 PM

Hi,

I am really not good at c/c++.
Some simple code..


#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "simlibdefs.h"


extern int *list_rank, *list_size;    /// this is the line 6
extern int maxatr, maxlist, next_event_type;
extern double  *transfer, sim_time, prob_distrib[26];
extern struct master {
    double  *value;
    struct master *pr;
    struct master *sr;



} **head, **tail;


/* Declare simlib functions. */
---

when I compile this with other files, I got the error msg like this:


simlib.h:6: error: expected init-declarator before "extern"
simlib.h:6: error: expected `,' or `;' before "extern"


I am using gcc to compile files...
Thanks a lot,


Beet
 




 11 Posts in Topic:
compile errors. pls help
beet <whhggg@[EMAIL PR  2008-04-18 13:20:14 
Re: compile errors. pls help
dj3vande@[EMAIL PROTECTED  2008-04-18 20:24:51 
Re: compile errors. pls help
Ian Collins <ian-news@  2008-04-19 08:30:58 
Re: compile errors. pls help
Kenneth Brody <kenbrod  2008-04-18 16:26:53 
Re: compile errors. pls help
beet <whhggg@[EMAIL PR  2008-04-20 07:03:52 
Re: compile errors. pls help
Keith Thompson <kst-u@  2008-04-20 14:15:11 
Re: compile errors. pls help
Kenneth Brody <kenbrod  2008-04-21 10:05:06 
Re: compile errors. pls help
beet <whhggg@[EMAIL PR  2008-04-21 06:56:30 
Re: compile errors. pls help
Keith Thompson <kst-u@  2008-04-21 09:20:51 
Re: compile errors. pls help
Ben Bacarisse <ben.use  2008-04-21 17:04:32 
Re: compile errors. pls help
CBFalconer <cbfalconer  2008-04-21 19:36:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 14:11:36 CST 2008.