stupid syntax error

This is a discussion on stupid syntax error within the C++ Programming forums, part of the General Programming Boards category; file: terragen.h Code: #ifndef TERRAGEN_H #define TERRAGEN_H struct terragenInfo { STARTUPINFO si; PROCESS_INFORMATION pi; time_t ttStartTime; double dUpTime; }; void ...

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

    Angry stupid syntax error

    file: terragen.h
    Code:
    #ifndef TERRAGEN_H
    #define TERRAGEN_H
    
    struct terragenInfo
    {
    STARTUPINFO si;
    PROCESS_INFORMATION pi;
    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);
    
    #endif
    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
    Location
    Cape Town
    Posts
    788
    Yes, you must!

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,338
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 02: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, 01:53 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21