Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8709329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:20:29+00:00 2026-06-13T04:20:29+00:00

I have a line of source code: time_t l1_QuoteTime; I am getting the following

  • 0

I have a line of source code:

time_t l1_QuoteTime;

I am getting the following error for it:

[BCC32 Error] QuoteDefs.h(18): E2303 Type name expected
  Full parser context
    Unit1.cpp(7): #include api\dasapi.h
    dasapi.h(13): #include api\QuoteDefs.h
    QuoteDefs.h(9): class st_L1Quotes

I have included <time.h>. What am I missing here?


Code:

class st_L1Quotes
{
public:
    char secsym[10];
    char PrimExch;
    int mstatus;
    double l1_BidPrice;
    int l1_BidSize;
    double l1_AskPrice;
    int l1_AskSize;
    time_t l1_QuoteTime;
    double l1_lastPrice;
    double l1_todayhigh;
    double l1_todaylow;
    double l1_todayclose;
    int l1_volume;
    double l1_yclose;
    double l1_todayopen;
    double l1_LastBidPrice;
    // this is used for show up/down arrow for NASDAQ NMS stocks;
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:20:30+00:00Added an answer on June 13, 2026 at 4:20 am

    Where is <time.h> (should that be <ctime>) included w.r.t the "api/dasapi.h" header?

    Indeed, the QuoteDefs.h header should probably #include either <time.h> or <ctime> itself since it cannot be used unless that include is present. I can see how the time_t on the 11th line in the code snippet as formatted by me could be on the 9th line in your formatting of the code, but there isn’t room for header protection guards or the necessary #include.

    General tip:

    • Headers should be self-contained and idempotent.

    Self-contained means that you should be able to write:

    #include "header.h"
    

    at the top of a file and the code should compile cleanly.

    Idempotent means that it should not matter if the header is included twice. Usually, that wouldn’t be done directly; rather the source would include the header directly and some other header would also include the header indirectly (or two other headers would include it indirectly). Think what a nuisance it would be if you could only include <stdio.h> or <iostream> once!

    You can test idempotency by writing:

    #include "header.h"
    #include "header.h"
    

    at the top of a file and the code should compile cleanly.

    I even have a script called chkhdr to automate the test:

    #!/bin/ksh
    #
    # @(#)$Id: chkhdr.sh,v 1.3 2011/07/25 07:09:49 jleffler Exp $
    #
    # Check whether a header can be compiled standalone
    
    tmp=chkhdr-$$
    trap 'rm -f $tmp.?; exit 1' 0 1 2 3 13 15
    
    cat >$tmp.c <<EOF
    #include HEADER /* Check self-containment */
    #include HEADER /* Check idempotency */
    int main(void){return 0;}
    EOF
    
    options=
    for file in "$@"
    do
        case "$file" in
        (-*)    options="$options $file";;
        (*)     echo "$file:"
                ${CC:-gcc} $options -DHEADER="\"$file\"" -c $tmp.c
                ;;
        esac
    done
    
    rm -f $tmp.?
    trap 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running Cygwin Python version 2.5.2. I have a three-line source file, called
I have a command line tool written in c# (that i have the source
I have a problem with my colorscheme in vim: (source: tinygrab.com ) The line
I have this line in my code: myGridView.setChoiceMode(GridView.CHOICE_MODE_MULTIPLE); It works perfectly fine in ICS,
I have a line of php code that looks like this: echo <script>$('#edit_errors').html('<h3><em>Please Correct
I have the line of code below... How would I modify it to insert
I've started using Doxygen to document my team's project source code (we have C#,
I have some source code on my Mac, and in order to test I'm
I have been getting an error message that I can't resolve. It originates from
I have a program to pull the source code of a webpage and save

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.