need help to resolve the C# bug!!

This is a discussion on need help to resolve the C# bug!! within the C# Programming forums, part of the General Programming Boards category; hi I am tryin to compile one C# program, but m stuck somewhr in middle with one extern fuction i ...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    need help to resolve the C# bug!!

    hi

    I am tryin to compile one C# program, but m stuck somewhr in middle with one extern fuction i defined. Actually long time bac in this code i defined one extern function get_option. But i forget exact signature of this function and i an using this function in main function with two argument.
    When i am tryin to compile this program obv it will throw error for the same reason. Can anybody help me to find/guess the exact signature of that function.
    below is ma actual code
    Attached Files Attached Files

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    So wait, you aren't sure that your program is correctly prototyping an external function, correct? I seriously recommend using the debugger if that is the case. Even then, the debugger is not a miracle worker. See if you can't get the prototype corrected.

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    8
    yes......i am not sure, about prototyping of the function. But using debugger fxn, i can only track the things wen ma prog is fully compiled naa!!!

    but in this case i m evn not able to compile the same??
    pls suggest!!!

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I typically start off by using correct grammar. I am not a robot with special incoherent rambling resolving skills.

    Ok, lets start off with why do you not know how the function was supposed to be prototyped? What is the name of the function? If it is an common API function I betcha I may just know what it is supposed to be. If it is from some obscure library, you may need help beyond what I can provide.

  5. #5
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    need help in resoving linking error in C code!!

    I am working in XP, Visual C++ v6 doing maintenance on existing report preparing codes. I am new to C++ language and to C/C++ programming. I have a linking error and would appreciate some expert help.


    error mssges:
    :\Documents and Settings\IVarma\Desktop\kunda\Modcode.cpp(916) : warning C4508: 'main' : function should return a value; 'void' return type assumed
    Linking...
    Modcode.obj : error LNK2001: unresolved external symbol "int __cdecl open_cluster(void)" (?open_cluster@@YAHXZ)
    Modcode.obj : error LNK2001: unresolved external symbol _BTRV@24
    Modcode.obj : error LNK2001: unresolved external symbol "char * dbpath" (?dbpath@@3PADA)
    Modcode.obj : error LNK2001: unresolved external symbol _fatal
    Modcode.obj : error LNK2001: unresolved external symbol _set_multi_defaults
    Modcode.obj : error LNK2001: unresolved external symbol "char * __cdecl get_option(void)" (?get_option@@YAPADXZ)
    Modcode.obj : error LNK2001: unresolved external symbol "int __cdecl new_decode_cluster(char *,char (* const)[4][100])" (?new_decode_cluster@@YAHPADQAY13GE@D@Z)
    Debug/Modcode.exe : fatal error LNK1120: 7 unresolved externals
    Error executing link.exe.

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Belongs in the C board.

    And why does your file have a C++ extension?

    mods: need help on....linking error in C prog!!
    Last edited by robwhit; 09-08-2008 at 09:26 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gaks bug?
    By Yarin in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-31-2008, 03:47 PM
  2. Debugging a rare / unreproducible bug..
    By g4j31a5 in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 08-05-2008, 01:56 PM
  3. ATL bug of CComPtr?
    By George2 in forum Windows Programming
    Replies: 6
    Last Post: 04-07-2008, 08:52 AM
  4. How to resolve conflicts in SVN?
    By jutirain in forum Tech Board
    Replies: 0
    Last Post: 01-19-2008, 10:51 PM
  5. bug
    By Bleech in forum Windows Programming
    Replies: 2
    Last Post: 05-08-2007, 04:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21