Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: garanzia on December 14, 2006, 08:33:36 am

Title: codeblock problem under windows vista rtm
Post by: garanzia on December 14, 2006, 08:33:36 am
i am trouble compiling under vista , but my source running fine in xp

here the error :?:



[attachment deleted by admin]
Title: Re: codeblock problem under windows vista rtm
Post by: MortenMacFly on December 14, 2006, 08:59:46 am
i am trouble compiling under vista , but my source running fine in xp
- Settings -> Environment -> "General Settings"
- Disable "Check & set file associations"
(This isn't the final solution, though - just a workaround.)
With regards, Morten.
Ps.: No, I don't have Vista and I doubt I'll soon have.
Title: Re: codeblock problem under windows vista rtm
Post by: thomas on December 14, 2006, 10:07:56 am
Killerbot now owns a copy of Vista (or so I've been told). Poor guy  8)

Currently the general answer to any question starting with "I have this problem under Vista,..." that you'll generally get is:

We don't know, we don't care, we don't do Vista.

The "we don't care" part may not be entirely true, but for the time being, that much has to do. It will probably take several months before we can answer the Vista-related questions without guessing.

That does not mean that Code::Blocks may not run under Vista. It means we simply don't know anything about it, nor have we really tested anything profoundly. What we do know is that Microsoft changed quite a lot things which they previously advocated, and now they claim that they have always discouraged their use. Inhowfar this affects the operation of Code::Blocks, who knows.
Also, we know that the new "security" features as well as the filesystem virtualisation may interfere with a few components, for example plugin installation. However, it may also be that the user does not even notice this, as the worst part of Vista is that it silently replaces things behind your back in a typical Microsoft-like manner, leaving you hardly any way of actually knowing.

We do have a report from one user who has successfully compiled Code::Blocks using Code::Blocks under Vista. On the other hand side, it has been reported that for example MinGW does not work under Vista at all (again, this is hearsay, no idea whether it is true).
Title: Re: codeblock problem under windows vista rtm
Post by: garanzia on December 14, 2006, 11:17:15 am
thanks for the clarification and yes wingw is not working in vista. guess i have to use another pc .  :cry:
Title: Re: codeblock problem under windows vista rtm
Post by: killerbot on December 14, 2006, 12:14:32 pm
i am trouble compiling under vista , but my source running fine in xp

here the error :?:




Yes I have a vista at work (test machine, thank god). I can compile with MinGW, but I had to add some extra paths to the compiler settings.
Secondly I looked at your log. Yes, CB should not mess in that part of the registry (it used to do that in the past, I remember I have fixed that) [registering file types are a per user setting, not machine setting !]. Probably CB doesn't recognize Vista, in such a way that it knows there are user parts (HKEY_CURRENT_USER) and then falls back on writing in the HKCR. Will try to test that next week, should be easy to fix.


[edit] : we only fall back to the global key when the windows version is of the famile 95/98/Me.
So it might be a wx problem :

Code
	int family = wxGetOsVersion(&Major, NULL);
if(family == wxWIN95)
        return osWindows9598ME;
    if(family == wxWINDOWS_NT)
    {
        if(Major > 4)
            return osWindowsXP;
        else
            return osWindowsNT2000;
    }
    else
        return osUnknownWindows;
Title: Re: codeblock problem under windows vista rtm
Post by: garanzia on December 14, 2006, 06:26:10 pm
finally i am able to compile my source code (opengl) in vista !!!!!  :lol:
only 3 file need to be copy to lib folder because of CODEBLOCK not detect these file links .

--> as.exe
--> ld.exe
--> cc1plus.exe

thanks for everybody that help me .  :D
Title: Re: codeblock problem under windows vista rtm
Post by: luneo7 on March 03, 2007, 04:04:40 pm
I found a workahound....
Install Code::Blocks in c:\CodeBlocks
and then copy the batches files inside the batches.zip, to C:\CodeBlocks\bin, and rename ld.exe to ld1.exe.
Open Code::Blocks, Settings, Compiller, Select GCC, and in Programs, rename every *.exe to *.bat (except for gdb.exe, lust leave it as it is)  (ex.: mingw32.exe to mingw32.bat) ...
Almost done...
Click on the Start menu and right click Computer, then Proprieties, and then on the left pane, click Advanced system configuration, there will be a button called Environment Variables (or something like that), click  it, now in System Variables, search Path, edit it and add: ;C:\CodeBlocks\bin\;C:\CodeBlocks\include\;C:\CodeBlocks\mingw32\bin\;C:\CodeBlocks\libexec\gcc\mingw32\3.4.4\;C:\CodeBlocks\lib\
Click on Ok...
And now you can open Code::Blocks and use it  :D


[attachment deleted by admin]
Title: Re: codeblock problem under windows vista rtm
Post by: nev0 on March 13, 2007, 06:26:31 pm
I found a simpler way to do this, this is with the released Vista version.

If you've followed the instruction to install MinGW under C:\MinGW

Remember which file it cannot find, find the file concerned under MinGW directory, I had a problem compiling a simple Hello World program, and it was complaining it can't find "cc1plus", this was under C:\MinGW\libexec\gcc\mingw32\3.4.5, so what you do is,

In CB Go to:
Settings->Compiler and Debugger

Select "Toolchain executables" at the drop down that says "Compiler settings"

Click additional paths tab, add the path of the missing file to it.

That's it. No messing with environment variables or files within CB or MinGW. Good Luck
Title: Re: codeblock problem under windows vista rtm
Post by: heydzatsmi on March 25, 2007, 06:14:38 pm
what do you mean by saying : "and then copy the batches files inside the batches.zip, to C:\CodeBlocks\bin."

What is a "batch file"

Thanks for your help : )
Title: Re: codeblock problem under windows vista rtm
Post by: bugmenot on July 26, 2007, 03:53:47 pm
@Nev0
After adding the path to cc1plus.exe to Additional paths
CodeBlocks still keeps annoying me with the error:
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory

I'm using Vista Home Premium.
MinGW Path: C:\MinGW
CB Path: C:\Program Files\CodeBlocks

I installed MinGW following the
article in the wiki (http://wiki.codeblocks.org/index.php?title=MinGW_installation#GCC_3.4.5_manual_install).

//edit
Adding path of cc1plus.exe to "Path" environment variable
solved the problem.
Title: Re: codeblock problem under windows vista rtm
Post by: jsmithfic on September 22, 2007, 12:34:32 pm
Hi

Im new with codeblocks. I have codeblocks v1.0 and i can't find the way to change the path of cc1plus to solve that error when compiling. Could you help me? thanks
Title: Re: codeblock problem under windows vista rtm
Post by: raph on September 22, 2007, 05:38:47 pm
Please use a current nightly build since v1.0 rc is very outdated.
Title: Re: codeblock problem under windows vista rtm
Post by: TheLover on January 23, 2008, 02:23:32 pm
luneo7 ::
Thaaaaaaaank You. it really works .. i have it now on vista .. thanx man .. :)
Title: Re: codeblock problem under windows vista rtm
Post by: kguncc on September 17, 2009, 08:31:56 pm
I keep gettin a message saying that what ever im tryn to debug "uses an ivalid compiler. skipping...." idk what it means or how to fix it please help

Title: Re: codeblock problem under windows vista rtm
Post by: Ceniza on September 17, 2009, 09:03:04 pm
Solution (http://forums.codeblocks.org/index.php?action=search2&search=%22uses%20an%20invalid%20compiler%22)