Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 10, 2002 Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Hi, today I've downloaded DM ?ompiler and I'm trying to compile MFC CVS 4.21. I use smake -f nafxcw.mak and I get the following error:. SC -cpp -Ae -Ar -mn -o+time -NL -5 -a8 -Nc -c -H -HDNW -HO- -wx -w- -w3 -w6 -w7 -w11 -w12 -w17 -D_X86_ -D_MT -D_MBCS=1 -I..\..\..\include -oNW\olemon.ob j ..\olemon.cpp Internal error: cgobj 3034 --- errorlevel 1 SMAKE fatal error: command "SC" returned with error code 1 Stopping. Where is the problem? Please help, Oxy |
March 10, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to DigitalMars | hm now I've downloaded mfc from /Digital_Mars_C++/MS/CVS/HEAD and there was mfc library already, so I tried to build one of my simplest mfc app. I used other libs from MS Platform SDK, this is what i get: c:\Program Files\Microsoft Visual Studio\VC98\Lib\winspool.lib Error 43: Not a Valid Library File Does DMC++ support any librarys from MS Platform SDK, what should I do? > Hi, > > today I've downloaded DM ?ompiler and I'm trying to compile MFC CVS 4.21. I > use smake -f nafxcw.mak and I get the following error:. > > SC -cpp -Ae -Ar -mn -o+time -NL -5 -a8 -Nc -c -H -HDNW -HO- -wx -w- -w3 -w6 > -w7 -w11 -w12 -w17 -D_X86_ -D_MT -D_MBCS=1 -I..\..\..\include -oNW\olemon. ob > j ..\olemon.cpp > Internal error: cgobj 3034 > --- errorlevel 1 > SMAKE fatal error: command "SC" returned with error code 1 Stopping. > > Where is the problem? > Please help, > Oxy |
March 10, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to DigitalMars | See the c++ newsgroup. Phill had the same problem which Walter already solved. But I don't know whether or not the fix made it into the lastest available compiler.
DigitalMars wrote:
> Hi,
>
> today I've downloaded DM ?ompiler and I'm trying to compile MFC CVS 4.21. I
> use smake -f nafxcw.mak and I get the following error:.
>
>
>
>
>
>
>
>
>
> SC -cpp -Ae -Ar -mn -o+time -NL -5 -a8 -Nc -c -H -HDNW -HO- -wx -w- -w3 -w6 -w7 -w11 -w12 -w17 -D_X86_ -D_MT -D_MBCS=1 -I..\..\..\include -oNW\olemon.ob
> j ..\olemon.cpp
> Internal error: cgobj 3034
> --- errorlevel 1
> SMAKE fatal error: command "SC" returned with error code 1
> Stopping.
>
> Where is the problem?
> Please help,
> Oxy
>
>
>
|
March 11, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to DigitalMars | Try downloading the 8.27 beta and try it. -Walter www.digitalmars.com/dmc/dmcppDownload.html "DigitalMars" <taifun@mail.lt> wrote in message news:a6gap5$g1a$1@digitaldaemon.com... > Hi, > > today I've downloaded DM ?ompiler and I'm trying to compile MFC CVS 4.21. I > use smake -f nafxcw.mak and I get the following error:. > > > > > > > > > > SC -cpp -Ae -Ar -mn -o+time -NL -5 -a8 -Nc -c -H -HDNW -HO- -wx -w- -w3 -w6 > -w7 -w11 -w12 -w17 -D_X86_ -D_MT -D_MBCS=1 -I..\..\..\include -oNW\olemon. ob > j ..\olemon.cpp > Internal error: cgobj 3034 > --- errorlevel 1 > SMAKE fatal error: command "SC" returned with error code 1 Stopping. > > Where is the problem? > Please help, > Oxy > > |
March 11, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Taifun | Microsoft libraries are in COFF format, not OMF, and so need to be converted with COFF2OMF. -Walter "Taifun" <taifun@mail.lt> wrote in message news:a6gcb4$gjs$1@digitaldaemon.com... > hm now I've downloaded mfc from /Digital_Mars_C++/MS/CVS/HEAD and there was > mfc library already, so I tried to build one of my simplest mfc app. I used > other libs from MS Platform SDK, this is what i get: > > c:\Program Files\Microsoft Visual Studio\VC98\Lib\winspool.lib > Error 43: Not a Valid Library File > > Does DMC++ support any librarys from MS Platform SDK, what should I do? > > > Hi, > > > > today I've downloaded DM ?ompiler and I'm trying to compile MFC CVS 4.21. > I > > use smake -f nafxcw.mak and I get the following error:. > > > > > SC -cpp -Ae -Ar -mn -o+time -NL -5 -a8 -Nc -c -H -HDNW -HO- -wx -w- -w3 -w6 > > -w7 -w11 -w12 -w17 -D_X86_ -D_MT -D_MBCS=1 -I..\..\..\include -oNW\olemon. ob > > j ..\olemon.cpp > > Internal error: cgobj 3034 > > --- errorlevel 1 > > SMAKE fatal error: command "SC" returned with error code 1 Stopping. > > > > Where is the problem? > > Please help, > > Oxy > > |
March 11, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> wrote in message news:a6h63h$ppg$1@digitaldaemon.com... > Try downloading the 8.27 beta and try it. -Walter > > www.digitalmars.com/dmc/dmcppDownload.html > I tried. Nothing's changed. I tried to use COFF2OMF but it converts winspool.lib to a small empty file (no declarations really), then compiler links it but of course finds unresolved symbols... I even tried to use borland's coff2omf utility wich seems to convert libs correctly, but then linker outputs this error again: Error 43: Not a Valid Library File Is there any way to use winspool.lib and shell32.lib with digital mars? Thanks. |
March 11, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Taifun | On 11 Mar 2002, Taifun wrote: > I tried to use COFF2OMF but it converts winspool.lib to a small empty file (no declarations really), then compiler links it but of course finds unresolved symbols... I even tried to use borland's coff2omf [...] > Is there any way to use winspool.lib and shell32.lib with digital mars? AFAIK, Microsoft has changed the COFF format for import libraries with Visual C++ 6.0. You have to convert the import libraries with Microsoft's link (link /lib /convert x.lib) to the old format and then you can use DM's coff2omf. bye, Christof |
March 11, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christof Meerwald | "Christof Meerwald" <cmeerw@web.de> wrote in message news:a6ihv8$1ca0$1@digitaldaemon.com... > AFAIK, Microsoft has changed the COFF format for import libraries with Visual C++ 6.0. You have to convert the import libraries with Microsoft's link (link /lib /convert x.lib) to the old format and then you can use DM's > coff2omf. Thnx, for a great reply. Now I can link, but when I execute my application I get an error that winspool.dll is not found, and it's true: there's only winspool.drv. What should I do? |
March 12, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Taifun | "Taifun" <taifun@mail.lt> wrote in message news:a6il0d$1dtc$1@digitaldaemon.com... > "Christof Meerwald" <cmeerw@web.de> wrote in message news:a6ihv8$1ca0$1@digitaldaemon.com... > > AFAIK, Microsoft has changed the COFF format for import libraries with Visual C++ 6.0. You have to convert the import libraries with Microsoft's > > link (link /lib /convert x.lib) to the old format and then you can use > DM's > > coff2omf. > > Thnx, for a great reply. Now I can link, but when I execute my application I > get an error that winspool.dll is not found, and it's true: there's only winspool.drv. What should I do? Try renaming winspool.drv to winspool.dll. Alternatively, patch your exe file changing winspool.dll to winspool.drv. |
March 12, 2002 Re: Compile MFC - internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christof Meerwald | "Christof Meerwald" <cmeerw@web.de> wrote in message news:a6ihv8$1ca0$1@digitaldaemon.com... > On 11 Mar 2002, Taifun wrote: > > I tried to use COFF2OMF but it converts winspool.lib to a small empty file (no declarations really), then compiler links it but of course finds unresolved symbols... I even tried to use borland's coff2omf > [...] > > Is there any way to use winspool.lib and shell32.lib with digital mars? > > AFAIK, Microsoft has changed the COFF format for import libraries with Visual C++ 6.0. You have to convert the import libraries with Microsoft's link (link /lib /convert x.lib) to the old format and then you can use DM's > coff2omf. Thanks, I'll update the coff2omf documentation. |
Copyright © 1999-2021 by the D Language Foundation