CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Posts
    7

    a simple question -

    Hi, I have tried to create a static library to be included in my VC++ 6.0 project. Instead of compiling some C++ files which are not going to be changed , i want it to be in a
    library which i can include in my project. For that i tried to create a win32 static library. I have included those cpp files and tried to compile. But wizard gives error like
    C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit,fatal error C1010: unexpected end of file while looking for precompiled header directive.

    Please give me what are the options i should set for creating the static library.

    thanks,

    satheesh.
    [email protected]


  2. #2
    Join Date
    May 1999
    Location
    Seattle, WA USA
    Posts
    423

    Re: a simple question -

    i am not sure about the C1076 error, but for the C1010 error, you need to include your pre-compiled header file as the first thing in your .cpp file (it is probably called stdafx.h). If you do not want to be using pre-compiled header files, then you need to go to the project settings -> C/C++ tab -> choose pre-compiled headers from the drop-down list, then select the .cpp file that you do not want to be using pre-compiled headers & click the not using pre-compiled headers option.

    HTH
    --michael


  3. #3
    Join Date
    Jul 1999
    Posts
    7

    Re: a simple question -

    Thanks for ur reply. I am not getting the C1010 error. But i am getting the 1076 still. I am using header file generated by visibroker which is ORB which connects with Forte service object. i have included one of the such generated file in the library creation. It gives the follwing error.

    \forte_c.hh(34318) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit

    thanks ,

    satheesh.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured