×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    47

    Undefined reference error

    - I am using Carbide Express v1.0.
    - When I build the project I get undefined reference errors similar to below.
    - So I created an .mmp file and built from the command line using "abld build gcce urel". This built ok.
    - I tried to then import the .mmp file but got an error "Project already existing in workspace."
    - I am using S60_3rd_MR SDK.
    - My question is: how can I tell Carbide to link against a library that it is not currently linking against, to avoid the error below, without having to import an .mmp file. Or if I have to do this, how can I avoid "Project already existing in workspace." error.

    UrlLauncherAppUi.cpp.text+0x8f4): undefined reference to `RWsSession::RWsSession()'

    Thanks a lot.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Undefined reference error

    In "Project" / "Properties" / "C/C++ Build" / "Tool Settings"
    Emulator build: "WINSCW C/C++ Linker" / "Libraries": add ws32.lib
    GCCE build: "GCCE Linker" / "Libaries": add ${EPOC32_RELEASE_ROOT}\ARMV5\LIB\ws32.dso

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    47

    Re: Undefined reference error

    Thanks a lot, that worked perfectly.

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    Re: Undefined reference error

    hi
    in" Project" / "Properties" i didnt find / "C/C++ Build" / i am using carbidev2.0
    working fine for sdk3rd FP1 gcce configuration but not working for gcce SDK MR edition
    error is undefined reference to

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Undefined reference error

    This thread is/was about the old, useless Carbide.c++ 1.0.
    Your Carbide.c++ is much better, simply open the .mmp file, and amongst its tabs (the tabs are going to be on the bottom of the editor window) you will find one letting you add the libraries, with a single step. Or you can add it directly in the source.
    Note that the most recent version of Carbide.c++ is 2.7, just the built-in updater can not install it.

Similar Threads

  1. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  2. cannot build s60 2.x helloworld gui
    By metebalci in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-08-17, 07:43
  3. error LNK2001: Please Help
    By sourish_khan in forum Symbian
    Replies: 9
    Last Post: 2006-04-19, 11:16
  4. Urgent - Compiling erros
    By waelali in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-02-05, 14:45
  5. Building
    By pacman2000z in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-07-17, 10:44

Posting Permissions

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