March 12, 2002
"Walter" <walter@digitalmars.com> wrote in message news:a6kdl1$cp6$1@digitaldaemon.com...
>...
> Try renaming winspool.drv to winspool.dll. Alternatively, patch your exe file changing winspool.dll to winspool.drv.

Ok now I'm greally gooft:
    OPTLINK : Warning 134: No Start Address

When I run my app it crashes of course :) Please, once again, help. I want
to use DM ;)
My makefile looks like this:

FLAGS=-Jm -w- -Ae -o -mn -DWIN32 -D_WINDOWS -D_MBCS LIBS=user32+kernel32+shell32+winspool+NAFXCW

testsdk.exe: testsdk.obj testsdkDlg.obj stdafx.obj testsdk.res
 link
testsdk.obj+testsdkDlg.obj+stdafx.obj,,,$(LIBS),testsdk.def/RC:testsdk/noi;

testsdk.obj: testsdk.cpp stdafx.obj
 scppn /c $(FLAGS) testsdk.cpp

testsdkDlg.obj: testsdkDlg.cpp testsdk.obj
 scppn /c $(FLAGS) testsdkDlg.cpp

stdafx.obj: stdafx.cpp makefile
 scppn /c $(FLAGS) stdafx.cpp

testsdk.res: testsdk.rc
 rcc testsdk -otestsdk.res -32


March 12, 2002
> Ok now I'm greally gooft:
>     OPTLINK : Warning 134: No Start Address

Try a link switches as:
/CO /L /M:ADDRESS :GROUP /X /NOI /DE /DET /PACKF /XN /NT
/ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 /RC   :.\<Project>.RES

Are you sure you need to include WINSPOOL.LIB into your project? I've got quite a few MFC projects with DMC++, but do not recall ever having to include WINSPOOL.LIB...

Jan


March 12, 2002
No start address usually means you have no main, winmain, or dllmain anywhere in your program. What is the entry point for your program?

"Taifun" <taifun@mail.lt> wrote in message news:a6kl2n$fqu$1@digitaldaemon.com...
> "Walter" <walter@digitalmars.com> wrote in message news:a6kdl1$cp6$1@digitaldaemon.com...
> >...
> > Try renaming winspool.drv to winspool.dll. Alternatively, patch your exe file changing winspool.dll to winspool.drv.
>
> Ok now I'm greally gooft:
>     OPTLINK : Warning 134: No Start Address
>
> When I run my app it crashes of course :) Please, once again, help. I want
> to use DM ;)
> My makefile looks like this:
>
> FLAGS=-Jm -w- -Ae -o -mn -DWIN32 -D_WINDOWS -D_MBCS LIBS=user32+kernel32+shell32+winspool+NAFXCW
>
> testsdk.exe: testsdk.obj testsdkDlg.obj stdafx.obj testsdk.res
>  link
>
testsdk.obj+testsdkDlg.obj+stdafx.obj,,,$(LIBS),testsdk.def/RC:testsdk/noi;
>
> testsdk.obj: testsdk.cpp stdafx.obj
>  scppn /c $(FLAGS) testsdk.cpp
>
> testsdkDlg.obj: testsdkDlg.cpp testsdk.obj
>  scppn /c $(FLAGS) testsdkDlg.cpp
>
> stdafx.obj: stdafx.cpp makefile
>  scppn /c $(FLAGS) stdafx.cpp
>
> testsdk.res: testsdk.rc
>  rcc testsdk -otestsdk.res -32
>
>


March 12, 2002
"Jan Knepper" <jan@smartsoft.cc> wrote in message news:3C8DFADC.9253768A@smartsoft.cc...
> > Ok now I'm greally gooft:
> >     OPTLINK : Warning 134: No Start Address
>
> Try a link switches as:
> /CO /L /M:ADDRESS :GROUP /X /NOI /DE /DET /PACKF /XN /NT
> /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 /RC   :.\<Project>.RES
>
> Are you sure you need to include WINSPOOL.LIB into your project? I've got
quite
> a few MFC projects with DMC++, but do not recall ever having to include WINSPOOL.LIB...
>
> Jan
Yes! That was exactly the problem ( I added /ENTRY switch ;] ). BTW,
winspool.lib links itself even when I don't.
So, my application runs perfectly - thank you ALL for help!

Have a nice day/night,
Taifun.


March 12, 2002
> Yes! That was exactly the problem ( I added /ENTRY switch ;] ). BTW,
> winspool.lib links itself even when I don't.
> So, my application runs perfectly - thank you ALL for help!

Great!

> Have a nice day/night,

Still day for me...

Jan


1 2
Next ›   Last »