Thread: stupid syntax error

  1. #1
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004

    Angry stupid syntax error

    file: terragen.h
    #ifndef TERRAGEN_H
    #define TERRAGEN_H
    struct terragenInfo
    time_t ttStartTime;
    double dUpTime;
    void terragenInit(terragenInfo PARAM_tginfo);
    bool launchTerragen(terragenInfo PARAM_tginfo,C_fsystem& PARAM_script, C_fsystem& PARAM_terrain, C_fsystem& PARAM_world);
    bool killTerragen(terragenInfo PARAM_tginfo);
    bool terragenIsRunning(terragenInfo PARAM_tginfo);
    double terragenGetUpTime(terragenInfo PARAM_tginfo);
    d:\terranetd\terragen.h:8: syntax error before `;'

    *line 9 is the time_t ttStartTime

    as you can see this is a header file, and unless i am much mistaken i don't need to include time.h and windows.h do i? ta for the help

  2. #2
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Cape Town
    Yes, you must!

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Yes you do
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  3. Includes making me insane >.<
    By IceDane in forum C Programming
    Replies: 14
    Last Post: 04-14-2008, 10:24 AM
  4. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM