makefile and windows compilation

This is a discussion on makefile and windows compilation within the C Programming forums, part of the General Programming Boards category; Are you using VS6?...

  1. #31
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,449
    Are you using VS6?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #32
    Registered User
    Join Date
    Jun 2008
    Posts
    17
    Quote Originally Posted by Elysia View Post
    Are you using VS6?
    Yes.

  3. #33
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,449
    Better upgrade, if you can.
    VS6 is too different from VS.NET+, plus is not very standards compliant.
    (I cannot say what config you mus change & whatnot, because it's too different from VS2008.)
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #34
    Registered User
    Join Date
    Jun 2008
    Posts
    17

    Makefile

    Hi guys ... I've been trying to compile this code for a 64bit machine. It comes with its own Makefile. I don't know how to change the parameters in the makefile to address this change. When I currently compile it under the 64bit machine, in the task manager, It says its a 32bit program. Can someone help me figure it out. Here is the make file:

    PS... I'm compiling this code with cygwin in a 64bit windows machine.



    CC = gcc
    CFLAGS = -O3 -funroll-loops
    #CFLAGS= -g

    MONTE_LIBS= -lm

    MC_OBJECTS= main.o save.o utilities.o nt.o process.o

    COMMON = Makefile

    all: main3d

    main3d: $(MC_OBJECTS) $(COMMON)
    $(CC) $(CFLAGS) -o main3d $(MC_OBJECTS) $(MONTE_LIBS)


    .c.o:
    $(CC) -c $(CFLAGS) $<

    clean:
    rm -f $(MC_OBJECTS) core
    veryclean:
    rm -f $(MC_OBJECTS) core main3d *.c~ *.h~

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with makefile
    By New_Programmer in forum C++ Programming
    Replies: 5
    Last Post: 03-31-2009, 04:55 PM
  2. Replies: 1
    Last Post: 06-27-2008, 06:41 PM
  3. Makefile problem
    By TriKri in forum Windows Programming
    Replies: 8
    Last Post: 06-26-2008, 11:06 AM
  4. makefile help
    By the Wookie in forum C++ Programming
    Replies: 10
    Last Post: 10-12-2003, 07:31 PM
  5. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM

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