![]() |
![]() |
#1 |
Sep 2005
Arlington, Texas
102 Posts |
![]()
I am having trouble compiling 24.14. I successfully rebuilt gwnum.lib with make. When I try to build prime95 with make, I see this message:
make: Nothing to be done for 'compile'. When I try to build with Visual Studio, I get this message: Prime95 fatal error LNK1136: invalid or corrupt file I built 24.13 just three weeks ago with Visual Studio, so I'm stumped at why the build fails now. I deleted all of the source code and laid down the fresh 24.14 sources, but still got the same result. ![]() Any suggestions? Current toolset: GNU Make 3.79.1 Visual Studio 2003 Platform: Windows XP Pro SP2 |
![]() |
![]() |
![]() |
#2 |
P90 years forever!
Aug 2002
Yeehaw, FL
177278 Posts |
![]()
I use nmake which comes with MSVC
|
![]() |
![]() |
![]() |
#3 |
Sep 2005
Arlington, Texas
102 Posts |
![]()
Thanks Prime95. That did it. I used this command:
nmake /f compile /a Do you compile Prime95.sln also with nmake, or do you use Visual Studio? I've had to make two edits to get it to compile with Visual Studio: 1. Added security def, SECURITY_WIN32, to the "C/C++ Preprocessor" settings in the project. 2. Commented out line 1228 of commonc.c (//#include "security.c"). VS can't find security.c (and neither could I). |
![]() |
![]() |
![]() |
#4 |
P90 years forever!
Aug 2002
Yeehaw, FL
3·11·13·19 Posts |
![]()
I use the .sln file with visual studio. Even though the .sln file is for MSVC 7, I used a beta of MSVC 8 to build 24.14.
The security.c file contains the secret hashing function to let primenet know this is a trusted client. |
![]() |
![]() |
![]() |
#5 |
132708 Posts |
![]()
I would like also to recompile 24.14 to modify the way the program makes logs. I want to make an log file for screen output messages (with time if possible). But I'm not too good with Visual Studio so if someone can help me would be very nice.
|
![]() |
![]() |
#6 | |
Jul 2007
2 Posts |
![]() Quote:
I'm using prime95\prime95.sln with Visual Studio 2005 and it's complaining about the gwnum dependency. I tried using nmake /f compile all from within the gwnum directory, and I get numerous errors in the following form. xmult1.asm(?37?) : error A2070: invalid instruction operands _movsd(?2?): Macro Called From xcopy_7_words(?4?): Macro Called From xfft32(?52?): Macro Called From type1(?11?): Macro Called From xfft(?1?): Macro Called From xmult1.asm(?37?): Main Line Code The green text changes, but appears lots of times. |
|
![]() |
![]() |
![]() |
#7 | |
Jul 2007
28 Posts |
![]() Quote:
ml /c /coff /DPPRO mult.asm Assembling: mult.asm ml /c /coff /DPPRO mult1.asm Assembling: mult1.asm ... (lots of successful ml/assembling calls)... Assembling: cpuidhlp.asm ml /c /coff xmult1.asm Assembling: xmult1.asm xmult1.asm(37) : error A2070: invalid instruction operands _movsd(2): Macro Called From xcopy_7_words(4): Macro Called From xfft32(52): Macro Called From type1(11): Macro Called From xfft(1): Macro Called From xmult1.asm(37): Main Line Code ... (lots of failed ml calls with errors on different line numbers of xmult1.asm)... I've attached the output of the nmake call. -nkidd Last fiddled with by akruppa on 2007-08-01 at 12:45 Reason: The duplicate is probably due to moderation, but I'll leave both |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
compiling GMP-ECM | ATH | GMP-ECM | 69 | 2017-01-04 12:03 |
Help needed compiling GMP-ECM | M0CZY | GMP-ECM | 76 | 2009-09-29 15:48 |
Compiling my first program by using GMP | Raman | Programming | 3 | 2009-02-14 02:17 |
Compiling Phrot | rogue | Sierpinski/Riesel Base 5 | 142 | 2009-01-09 03:42 |
Compiling new version of GMP-ECM | M0CZY | GMP-ECM | 3 | 2006-05-27 09:54 |