Forum Archive

Go Back   3D Realms Forums > General Topics > Programming Forum
Blogs FAQ Members List Social Groups Calendar Mark Forums Read

Notices

 
 
Thread Tools
Old 07-20-2007, 02:17 PM   #1
8IronBob

8IronBob's Avatar
Dev-C++ and Vista, compilation and build problems?
I'm sort of curious, now that I have Dev-C++ 5.0 Beta installed, and looking to compile a few test programs, I just figured that after compiling a program as simple as a counter (where I make the CPU count from 1 to 1,000), would actually compile and do a good job. It seemed to work wonders when I was using Dev-C++ in Win XP some time ago. However, trying that same program in Vista, I ran Dev-C++ as an Administrator by right clicking it, all of the sudden, after the first initial setup of Dev-C++, and laying down my test program, compiling it, Dev-C++ couldn't find the Makefile for the dumb thing, and it wound up giving me a big, fatal error for the program right there and then. I'm wondering if Bloodshed even supports Vista yet, because of the new infrastructure, and such. On top of that, this was a console app, for being run in a DOS window, and that could be somewhat significant, too. For those of you who are curious, this was the code I tried out:

Code:
// Counter.c - Test code for new C/C++ compiler installations
// Counts from 1 to 1,000 via C through Bloodshed Dev-C++ v4.9
// (c)2007, Robert A. Morin, RAM Digital Media

// Intial variables
#include <stdio.h>
#include <conio.h>

// Start Code
int main()
{
        printf ("RAM Digital Media - Compiler Test - Counter v1.0 Beta\n");
        printf ("(c)2007, Robert A. Morin\n");
        printf ("----------------\n\n");
        printf ("Press <ENTER> to Start Test Program:  \n");
        getch();

        int x;
        {
                printf ("X = %i\n", x);
                x=0;x<1001;x++;
                x = x + 1;
        }

        printf ("Press <ENTER> to Return to Prompt:  \n");
        getch();
        return 0;
}
For some test program this simple, it just didn't seem to want to take.
Rather unfortunate if you ask me... Bloodshed better design this from the ground up for Vista soon, maybe version 6.0 or something or another?

Here's the result of that:



Wonder if Vista even supports GCC at all?
__________________
PC Specs (a.k.a. "Galacticus Prime"): http://pcpartpicker.com/p/7Vk7FT
Last edited by 8IronBob; 07-21-2007 at 09:02 AM.
8IronBob is offline  
Old 07-22-2007, 03:43 AM   #2
Plagman

Plagman's Avatar
Re: Dev-C++ and Vista, compilation and build problems?
That has nothing to do with a "new infrastructure" issue or anything like that, cc1.exe just isn't in your path for some reason. Maybe DevC++ doesn't know how to set environment variables under Vista, try running it in compatility mode. GCC works perfectly with Vista.
__________________
EDuke32 - "The corrupt doctrine of terror has begun."
Plagman is offline  
Old 07-30-2007, 10:54 AM   #3
Shadow Master

Shadow Master's Avatar
Re: Dev-C++ and Vista, compilation and build problems?
Quote:
Originally Posted by Plagman View Post
Maybe DevC++ doesn't know how to set environment variables under Vista, try running it in compatility mode. GCC works perfectly with Vista.
That would only happen if the GetEnvironment() family of APIs (kernel32) got modified since XP. Not surprising anyways if you're using the 64-bit Vista (are you?).
__________________
You're master of no shadows! -- Steve
Duke Nukem Forever!

[My website | Public Commander Keen Forum | The Commander Keen Wiki]
Shadow Master is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:21 PM.

Page generated in 0.10784101 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.