[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::visual

Title:Microsoft Visual C++ bug reports and kits
Notice:Register in Topic 2. 5.Last for latest Kit
Moderator:DECWET::THOMASN
Created:Tue May 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:521
Total number of notes:2938

499.0. "Developer Studio linker problem on Alpha" by VAOU09::LAM () Fri Apr 18 1997 15:09

    I have installed Developer Studio 5.0 on my NT4 Miata. I am trying
    to check out the SDK\ISAPI samples but keep running into a linker
    problem:
    LIBCd.lib (crt0.obj) error LNK2001: unresolved external symbol main
    AlphaDbg/IS2WCGI.exe : fatal LNK1120: 1 unresolved external
    I have recreated a new configuration in project, but without success.
    I am able to build using nmake from the command prompt by doing 
    set CPU=ALPHA.
    The .mak file generated by Developer Studio has X86 references in it.
    Is there a way I can set the CPU type inside Developer Studio ?
    
T.RTitleUserPersonal
Name
DateLines
499.1DECWET::JOMary had a little lamb, with mint jelly. Dot WarnerTue Apr 22 1997 14:4619
    the following response is from Vadim Paretsky
    
    1. The IS2WCGI sample has a linker option that says
    /entry:"_DllMainCRTStartup@12". This decorated name is Intel specific.
    When creating an Alpha configuration from an Intel configuration the
    IDE doesn't do translation of /entry: linker options into appropriate
    Alpha names. That should be done by the user. (To find this option in
    the IDE, click Settings on the Project menu. Then click the Link tab,
    and click Output in the Category box.). The Alpha name in this case
    should be "_DllMainCRTStartup". This should solve the "unresolved
    external symbol main" problem.
    
    2. The X86 references in the makefile generated by the developer's
    studio apply to Intel configurations only (linker options /machine:IX86
    or /machine:I386) . Alpha configurations cloned from Intel
    configurations or created from scratch will have /machine:ALPHA. No
    action from the IDE is necessary.