User forums > Help

Can´t even install it

(1/4) > >>

Newbie0815:
I know, there are 100s of help pages all over the web explaining how to install C::B and MinGW, but it looks like I´m too dumb to do it right

Now this is not really a big deal, I´m using the 1.0RC2, it installs all I need in a simple installation and everything works just fine, after all I´m not a real coder, just messing around with a few small tools I´m writing for myself, so its more out of principle that I want to figure out how to use a nightly build

During the last year or so, I´ve tried maybe a dozen times, always a dozen different ways, always failed, always went back to 1.0-RC2
I´ve been reading this forum from bottom to top, anything I could find at the gcc website, the mingw website, at Wiki and several dozen other sites, I´ve followed all kinds of instructions, always with a different result, but never successful, I can get each single part to work, i.e. running gcc from command line is no problem, but never the combination
Partially I found the solution through other posts in here or elsewhere, but I´d really love if I could get the whole thing to work for once

Depending what and how I install it, from all manually up to the automated download and install for MinGW what I get is always different, I just never get it to work
Usually it begins with invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!] or something like that, solved in the Toolchain executables
Next comes some no such file error, solved by adding MinGW\bin to the path
Next comes cannot exec cc1plus, there I figured out, its not in MinGW\bin but in MinGW\libexec\gcc\mingw32\3.4.2, and so on and so on
I´ve tried copy files around and adding further folders to the path, but it seems an endless chain, every error fixed leads to several new ones, like no resources or further no such file errors, I don´t even remember all of them, and sooner or leter I give up and go back to 1.0RC2

I realize, lots of others are using C:B without problems, so I figured it must be me and since most explanations tell me, it really not so complicated to install a nightly, I must be overlooking some very basic settings

Can anyone help me out there?

stahta01:
I can help you get it setup if you want?
But, I will need you to do a new minGW install of 3.4.5 version of GCC the 3.4.2 has been having some issues for me in the last two months (I use wxWidgets 2.8, this is where all the issues happen on.)

Step 1, rename the folder C:\mingw to mingw.save (this is for you to go back to if needed.)
Step 2A, Download, the new minGW installer 5.1.3, 
  http://prdownloads.sourceforge.net/mingw/MinGW-5.1.3.exe?download
Step 2B, Download, the make 3.80, 
  http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download
Step 2C, Download, the gdb
  http://prdownloads.sf.net/mingw/gdb-6.3-2.exe?download
Step 2D, Download, the which command
  http://prdownloads.sf.net/gnuwin32/which-2.16-4.exe?download

Step 3. Remove minGW register entries, this makes it easier to install a second copy on minGW on the PC.
Create a file called "MinGW-remove.reg" using a text editor and paste the code below in it. Save it. Run it.
Note, the reg code below should work in NT 4.0 or later machines.
Note, this step is optional, so if you don't feel conformable doing it you can skip it. But, then be extra careful to pick the correct destination folder of C:\MinGW

--- Code: ---REGEDIT4

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MinGW]


--- End code ---

Step 4. run the installer, pick "Download Only"
       A. Select "Candidate" Package
       B1. Select "MinGW Base Tools"
       B2. Select "g++ Compiler"

Step 5. run the installer, pick "Download & Install"
       A. Select "Candidate" Package
       B1. Select "MinGW Base Tools"
       B2. Select "g++ Compiler"
       C. Enter "C:\MinGW" as destination folder

Step 6. Run mingw32-make-3.80.0-3.exe
       6B. Enter "C:\MinGW" as destination folder

Step 7. Run gdb-6.3-2.exe
       7B. Enter "C:\MinGW" as destination folder

Now, we should have a known state of minGW install

Tim S

Note, My Directions is a highly modified version from
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Windows
To continue on I need to know your OS? (XP, 9x or etc.)

Note, I also need to known if you are going to create projects using wxWidgets?

Warning, it is highly suggested that minGW, wxWidgets and Code::Blocks be installed in folders that do NOT have spaces in their names. In other words, C:\Program Files\codeblocks causes problems and should NOT be used.

Tim S

       
           

Newbie0815:
fist of all, thanks for the quick answer

basically I´ve done all the things from your list several times over already, but just to make sure I´ve done it once more just now
I´m aware of folder names with spaces, so no problem there
Only thing I usually do different is to install to D:\MinGW, but for this time I´ve made it C:\MinGW, just to make sure

Result:
I run C::B, it opens, wow, 1st step working
I create some folder, and begin a new project, Win32 GUI projext, name it test1
I don´t type any code but simply use the default code of a blank window C::B creates
I right click the project, choose build (Ctrl-F9)
I get a whole bunch of errors beginning with "stdarg.h: No such file or directory"
I search and find stdarg.h deep in a subfolder of MinGW, but no matter whether I add its path or copy the file into the bin, it doesn´t find it

I´ve been using XP pro so far, yesterday I´ve got Vista, but after I saw how many problems there are with it, I haven´t installed it yet (I would, if theres a chance to get C::B working with it?)

For the projects I´m creating, well, most of it isn´t even a real project, but just an attempt to learn how to mess around with windows under windows

stahta01:

--- Quote from: Newbie0815 on February 20, 2007, 05:47:32 am ---fist of all, thanks for the quick answer

basically I´ve done all the things from your list several times over already, but just to make sure I´ve done it once more just now
I´m aware of folder names with spaces, so no problem there
Only thing I usually do different is to install to D:\MinGW, but for this time I´ve made it C:\MinGW, just to make sure

--- End quote ---

Note, you can use D:\MinGW if you want, but you need to tell me because some extra steps are need if that is used. The most important step is that the folder C:\MinGW must NOT exist if you are not using C:\MinGW because minGW always looks for C:\MinGW first in some cases.


--- Quote ---Result:
I run C::B, it opens, wow, 1st step working
I create some folder, and begin a new project, Win32 GUI projext, name it test1
I don´t type any code but simply use the default code of a blank window C::B creates
I right click the project, choose build (Ctrl-F9)
I get a whole bunch of errors beginning with "stdarg.h: No such file or directory"
I search and find stdarg.h deep in a subfolder of MinGW, but no matter whether I add its path or copy the file into the bin, it doesn´t find it

--- End quote ---

We need to verify the C::B setup for minGW is correct, what version of C::B are you using SVN number or Date


--- Quote ---I´ve been using XP pro so far, yesterday I´ve got Vista, but after I saw how many problems there are with it, I haven´t installed it yet (I would, if theres a chance to get C::B working with it?)

For the projects I´m creating, well, most of it isn´t even a real project, but just an attempt to learn how to mess around with windows under windows

--- End quote ---
MinGW is NOT working using default settings for any body under Windows Vista!

Tim S

Newbie0815:
I downloaded the last nightly today, CB_20070217_rev3614_win32

Navigation

[0] Message Index

[#] Next page

Go to full version