Jump to page: 1 2
Thread overview
Compile MFC - internal error
Mar 10, 2002
DigitalMars
Mar 10, 2002
Taifun
Mar 11, 2002
Walter
Mar 10, 2002
user
Mar 11, 2002
Walter
Mar 11, 2002
Taifun
Mar 11, 2002
Christof Meerwald
Mar 11, 2002
Taifun
Mar 12, 2002
Walter
Mar 12, 2002
Taifun
Mar 12, 2002
Jan Knepper
Mar 12, 2002
Taifun
Mar 12, 2002
Jan Knepper
Mar 12, 2002
Walter
Mar 12, 2002
Walter
March 10, 2002
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
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
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
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
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
"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
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
"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
"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
"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.


« First   ‹ Prev
1 2