×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    10

    linking warnings and errors

    Hi everyone!

    I am using visual studio .net to code and up until now i was only trying to learn how to do stuf.
    Now i am really trying to develop my code and i get this weird linking warning and i cant find out anything about it.

    "warning LNK4044: unrecognized option '/WARN:3'; ignored"

    And then i get more weird linking errors.

    "SOCKETS error LNK2019: unresolved external symbol ___security_cookie referenced in function "private: virtual void __thiscall CSocketsAppUi::HandleCommandL(int)" (?HandleCommandL@CSocketsAppUi@@EAEXH@Z)
    "
    "SOCKETS error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function "private: virtual void __thiscall CSocketsAppUi::HandleCommandL(int)" (?HandleCommandL@CSocketsAppUi@@EAEXH@Z)
    "

    Could this be some library that i am missing?
    Please help me!

    Ps.The code compiles and runs if i build for wins but not for VS .net

    Thanks for anyone that helps

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    101
    I am not sure whether I can help with your second problem, but it usually is caused by a missing lib-file from your project settings. Have you checked that you have included all the needed lib-files in your Visual Studio project? If you have used "abld makefile vc6" to generate workspace, you should have all the libraries you need, if your mmp-file lists all the needed libs.

    As for the "/WARN:3"-warning. It is harmless. This warning is shown because the Symbian build scripts were created for VC++ 6.0 and the VS.NET linker does not support that linker option. This linker option is set in file cl_win in epoc32\tools-directory under the SDK main directory.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    10
    Thanks for ur help. The big problem is that if i compile for the wins platform the program works.

    Its really strange.

    Thanks again bitnir!

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    11
    A solution working fine for me is to set in you projet propriety :
    C/C++ // Code Generation // Buffer Security Cheack -> No

    Don't realy know if it's a good solution but ...

  5. #5
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425

  6. #6
    Regular Contributor
    Join Date
    Nov 2003
    Location
    Germany
    Posts
    124
    Thanks a lot!!!!!!!Praline

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×