MFC App + Screen saver on PowerPC
Brad Wilson/Crucial Software -- crucial@pobox.com Monday, December 09, 1996 Environment: Visual C++ 4.1, Windows NT 4.0 Intel: VC++ 4.2b, Windows NT 4.0 and Windows 95 RISC: VC++ 4.1, Windows NT 4.0 I have an MFC application with a screen saver shell (the screen saver is written in C, and calls the MFC application to do the painting for it; trust me, this was the easiest thing to do). I have a PowerPC 604 w/ Windows NT 4.0 and Visual C++ 4.1 RISC edition. The MFC application compiles completely and works without any problems. However, when I link the screen saver shell for it with the included SCRNSAVE.LIB, I get the following error: LIBC.lib(wincrt0.obj) : error LNK1594: unresolved external symbol ..WinMain The source code for the screen saver is unchanged source from the Intel version (I can provide it for anyone who wants to look; no real trade secrets in it). Anyone have any clues what's going on? -- Brad Wilson Custom software development & solutions crucial@pobox.com Internet and intranet consulting services The Brads' Consulting Windows NT/Windows 95 software development http://www.thebrads.com Web site planning, development and maintenance Content (C) 1996 Brad Wilson; no reproduction without authorization
Mark Simonton -- marksi@eskimo.com Saturday, December 14, 1996 I think I might know; As a formember of the PPC-VC porting team I have seen some of this. My guess is that the .DEF file is listing some function names that are different in PPC / X86. (this was my most often encountered unresolved External generator). Did you import the project from x86 or just create a new one? If you imported it you might go back and check all of the settings, as the import feature just sets all the compiler/linker options to the default, which causes some apps to loose things. (you encounter this behaviour across any platform. Beyond that Forwarded your message to some of my contacts in the PPC team, thinking they might be able to help. One responded back to my forward list with the suggestion about #ifdef's and WinMain(). which got me thinking about the .Def file... Hope this helps Mark. // I keep getting disconnected from my telnet session while trying to // enter this message, hope I haven't sent 4 or 5 partial responses. //////////////////////////////////////////////// On Mon, 9 Dec 1996, Brad Wilson wrote: > Environment: Visual C++ 4.1, Windows NT 4.0 > > Intel: VC++ 4.2b, Windows NT 4.0 and Windows 95 > RISC: VC++ 4.1, Windows NT 4.0 > > I have an MFC application with a screen saver shell (the screen saver is > written in C, and calls the MFC application to do the painting for it; > trust me, this was the easiest thing to do). > > I have a PowerPC 604 w/ Windows NT 4.0 and Visual C++ 4.1 RISC edition. > The MFC application compiles completely and works without any problems. > However, when I link the screen saver shell for it with the included > SCRNSAVE.LIB, I get the following error: > > LIBC.lib(wincrt0.obj) : error LNK1594: unresolved external symbol ..WinMain > > The source code for the screen saver is unchanged source from the Intel > version (I can provide it for anyone who wants to look; no real trade > secrets in it). Anyone have any clues what's going on? > > -- > Brad Wilson Custom software development & solutions > crucial@pobox.com Internet and intranet consulting services > The Brads' Consulting Windows NT/Windows 95 software development > http://www.thebrads.com Web site planning, development and maintenance > Content (C) 1996 Brad Wilson; no reproduction without authorization > >
| Вернуться в корень Архива |