ObjModLib Compiler for pragma comment.

This is a discussion on ObjModLib Compiler for pragma comment. within the C++ Programming forums, part of the General Programming Boards category; If anyone out there has a compiler capable of compiling code into Object Module Libraries, that can suppot the #pragma ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    ObjModLib Compiler for pragma comment.

    If anyone out there has a compiler capable of compiling code into Object Module Libraries, that can suppot the #pragma comment directive, please email me (email address in the signature). I have one that supports the directive, and one that can compile Object Module Libraries, but neiher can do both.

    Also, when does the preprocessor process? If I MAKE the code, will it process then, or only when it is COMPILEd into an executable?

    _______________________
    Sean Mackrory
    sean_mackrory@hotmail.com

  2. #2
    Unregistered
    Guest
    If your compiler doesn't allow use of the #pragma directive then you need to get a newer or less cheap compiler. All of the most common compilers (even the free ones) allow #pragma. Of course it could very well be that you're using it wrong seeing as how #pragma is implementation dependent and behaves differently on different machines and compilers often interpret the same #pragma differently.

    This alone is a good reason not to use it because it is not portable. Its a last resort when you have tried everything else.

    The preprocessor takes effect upon compilation. It's the first phase of building to be specific.

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    The compiler that could make ObjModLib supported some of the #pragma directives, but no mention of the ones I needed to use except for startup and exit. The other compiler is just crap for making libraries. The first is Borland Turbo C++ for 3.0 for Dos, and the latter is 4.5 for Windows. The early borland compilers were crap, I like the new ones. Unfortunately, I'm a recent immigrant to the U.S., so I can't afford to get a new compiler that's decent, because I can't get a job (under 18, it's a confusing Visa thing. I'll try it out, I just wanted to be assured there was a way to do it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tab->Space converter and comment colorizer
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 01-30-2005, 05:46 PM
  2. Compiler questions
    By DvdHeijden in forum C++ Programming
    Replies: 6
    Last Post: 01-17-2005, 03:00 PM
  3. Can someone help me understand this example program
    By Guti14 in forum C Programming
    Replies: 6
    Last Post: 09-06-2004, 01:19 PM
  4. C Compiler
    By SAMSEIED in forum C Programming
    Replies: 5
    Last Post: 06-06-2002, 06:44 PM
  5. Special Compiler for win app's
    By Unregistered in forum Windows Programming
    Replies: 19
    Last Post: 04-26-2002, 04:52 PM

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