I am lookng for some help. I looked over a lot of threads. I cant seem to find what i need. I have to PC's one laptop and a desk top. Both running Vista 32bit, if that helps. I have installed devcpp4970-gcc295 first on my laptop, and it works grate. When i have in stalled it on my desk top and run any of the programs that i made from my laptop i get error.
Lne Fle Mssage
ld C:\User\Adam\Desktp\My Project... cannot open crt2.o: No such file or directory
C:\User\Adam\Desktp\My Project... [Build Error][Try.exe] Error 1
And if I start a new project it will run fine.
Also if this helps. I do have MS Visual C++ with DARK GDK.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> I have installed devcpp4970-gcc295 first on my laptop
Why have you installed such an old version with a very out of date compiler? (GCC 2.95 was released in 1998 I think). The 'latest' version 4.9.9.2 is no spring chicken, but a far safer proposition, and also the only version you are likely to get good support on from here. It is provided with GCC 3.4.2, which while not leading edge, is at least largely ISO C++ and C99 compliant.
> When i have installed it on my desk top and run any of the programs
> that i made from my laptop i get error.
If you simply ran a program built on your lap top, you would not have had a linker error. It is apparent that you are not running these programs, but rather rebuilding them. You will probably be able to run the original .exe files directly. You do not need Dev-C++ or a compiler to be able to do that.
> I looked over a lot of threads.
There is one thread linked in the "PLEASE READ BEFORE POSTING A QUESTION" thread dealing precisely with getting Dev-C++ to run on Vista, and your problem looks identical to that. However I would suggest that all bets are off unless you use v4.9.9.2 as that is what the 'fix' refers to. Here is the direct link https://sourceforge.net/forum/message.php?msg_id=4156252 4.9.9.2 can be had from https://sourceforge.net/projects/dev-cpp/files/Binaries/devcpp-4.9.9.2_setup.exe However be sure to follow the uninstall instructions in the afore mentioned "PLEASE READ BEFORE POSTING A QUESTION" thread TO THE LETTER. This is especially important for removing old versions and upgrading. Also note that project files (.dev) from your old projects are unlikley to work correctly and you will need to create a new project and add teh existing files to it. If you choose to keep your old version, the Vista fix instructions may still work, but you are on your own.
> I do have MS Visual C++
Which is a much better proposition to be frank. Why not rebuild your code with that? Use the project wizard to create an "Empty Project" with "No pre-compiled headers", and add the _CRT_SECURE_NO_WARNINGS macro to the preprocessor definitions in the project properties dialog, and then add your existing files to the project. It may not compile out of the box, but any errors/warnings you get are likely to be things your old compiler missed, or non-standard language features it permitted. Note that VC++ does not support ISO C99 features (and never will, so these are best avoided in any case).
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am lookng for some help. I looked over a lot of threads. I cant seem to find what i need. I have to PC's one laptop and a desk top. Both running Vista 32bit, if that helps. I have installed devcpp4970-gcc295 first on my laptop, and it works grate. When i have in stalled it on my desk top and run any of the programs that i made from my laptop i get error.
Lne Fle Mssage
ld C:\User\Adam\Desktp\My Project... cannot open crt2.o: No such file or directory
C:\User\Adam\Desktp\My Project... [Build Error] [Try.exe] Error 1
And if I start a new project it will run fine.
Also if this helps. I do have MS Visual C++ with DARK GDK.
> I have installed devcpp4970-gcc295 first on my laptop
Why have you installed such an old version with a very out of date compiler? (GCC 2.95 was released in 1998 I think). The 'latest' version 4.9.9.2 is no spring chicken, but a far safer proposition, and also the only version you are likely to get good support on from here. It is provided with GCC 3.4.2, which while not leading edge, is at least largely ISO C++ and C99 compliant.
> When i have installed it on my desk top and run any of the programs
> that i made from my laptop i get error.
If you simply ran a program built on your lap top, you would not have had a linker error. It is apparent that you are not running these programs, but rather rebuilding them. You will probably be able to run the original .exe files directly. You do not need Dev-C++ or a compiler to be able to do that.
> I looked over a lot of threads.
There is one thread linked in the "PLEASE READ BEFORE POSTING A QUESTION" thread dealing precisely with getting Dev-C++ to run on Vista, and your problem looks identical to that. However I would suggest that all bets are off unless you use v4.9.9.2 as that is what the 'fix' refers to. Here is the direct link https://sourceforge.net/forum/message.php?msg_id=4156252 4.9.9.2 can be had from https://sourceforge.net/projects/dev-cpp/files/Binaries/devcpp-4.9.9.2_setup.exe However be sure to follow the uninstall instructions in the afore mentioned "PLEASE READ BEFORE POSTING A QUESTION" thread TO THE LETTER. This is especially important for removing old versions and upgrading. Also note that project files (.dev) from your old projects are unlikley to work correctly and you will need to create a new project and add teh existing files to it. If you choose to keep your old version, the Vista fix instructions may still work, but you are on your own.
> I do have MS Visual C++
Which is a much better proposition to be frank. Why not rebuild your code with that? Use the project wizard to create an "Empty Project" with "No pre-compiled headers", and add the _CRT_SECURE_NO_WARNINGS macro to the preprocessor definitions in the project properties dialog, and then add your existing files to the project. It may not compile out of the box, but any errors/warnings you get are likely to be things your old compiler missed, or non-standard language features it permitted. Note that VC++ does not support ISO C99 features (and never will, so these are best avoided in any case).
Clifford