Thread: Get Code Working with pragma

  1. #1
    Registered User
    Join Date
    Sep 2018
    Posts
    1

    Question Get Code Working with pragma

    Hello I wanted to get the code from A First Windows Application - Cprogramming.com


    working, but it had a warning at the pragma and failed at the next import.

    I use Eclipse and MinGW on Windows 10.

    Thank you,

    yowa.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    36,559
    You can just delete the pragma.

    If you set the rest of the project up correctly, you've already told the linker that you're creating a windows program.
    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. Code working but not after 1 day
    By sheepilja in forum C Programming
    Replies: 3
    Last Post: 12-12-2010, 10:37 AM
  2. why is my code not working from here it looks ok
    By Lisa_townsend in forum C Programming
    Replies: 19
    Last Post: 12-05-2009, 12:08 PM
  3. labels inside the code #pragma mark label
    By nacho4d in forum C++ Programming
    Replies: 6
    Last Post: 01-11-2009, 02:50 AM
  4. Code Not working
    By srivatsan in forum C Programming
    Replies: 4
    Last Post: 10-13-2008, 04:38 AM
  5. Working directory pragma
    By mikahell in forum C++ Programming
    Replies: 6
    Last Post: 11-01-2007, 10:24 AM

Tags for this Thread