Project link error

Hello,
I am just stack, I got an error: Undefined symbol -main referenced in C:\Program Files\National Instruments\CVI85\bin\Msvc\cvistart.lib.
Any help?

Solved. I had to add my .c file to the project.
Thanks.

Similar Messages

  • Excelrepor​tdemo project link error with CVI2010 on windows 7, 64-bit operating system

    I am trying to run the excelreportdemo project in CVI2010 on windows 7, 64-bit operating system. I have the Excel2013 installed as well. I have chosen the build configuration as release or debug for 32 bit system so to be compatible for the test platform for production.
    However, I get 12 Project link errors as following:
    Undefined symbol '_ExcelRpt_RangeBorder@24' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WriteDataFromTableControl@16' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_SetCellValue' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_SetCellRangeAttribute' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ChartAddtoWorksheet@40' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ChartWizard@52' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_SetChartAttribute' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WorkbookNew@8' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ApplicationNew@8' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ApplicationQuit@4' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WorkbookClose@8' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WorksheetNew@12' referenced in "excelreportdemo.c".
    I have found a previous dicussion back in 2007. Unfortunately it did not help for the same problem on my new machine and CVI2010. Could anyone give me help on this/
    Thanks!
    Yuwei
    Solved!
    Go to Solution.

    The previous discussion link is pasted below:
    http://forums.ni.com/t5/LabWindows-CVI/Problems-adding-the-activex-instrument-e​xperiencing-undefined/m-p/580608/highlight/true#M3​1390
    It did not solve my problem, but may spark your idea of helping me.
    Thanks a lot!
    Yuwei

  • Link error: Failed to open external module

    Newbie question #2... I'm in chapter 5 of the tutorial, just added the button to calculate min and max values of the sinewave. I get two link errors when I try to run the program.
    2 Project link errors:
     Failed to open external module
     Failed to open external module
    If I comment out the MaxMin1D function and fudge the min and max values the program runs.
    Any ideas?
    The function I added is as follows which appears  to be identical to the sample in the tutorial.
    int CVICALLBACK FindMaxMin (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        ssize_t min_index;
        double min;
        ssize_t max_index;
        double max;
    //    max = 5;
    //    min = 3;
        switch (event)
            case EVENT_COMMIT:
                MaxMin1D(sine, 100, &max, &max_index, &min, &min_index);
                SetCtrlVal(panelHandle, PANEL_MAX, max);
                SetCtrlVal(panelHandle, PANEL_MIN, min);            
                break;
            case EVENT_RIGHT_CLICK:
                break;
        return 0;

    I searched for analysis.h, found it and copied it to the same folder as sample1.c and the program now links and runs.
    I'm wondering if I'm missing something in the configuration (not smart enough to know where to search)???
    Thanks

  • Linking error cvistart.lib

    Hi,
    I'm trying to build a DLL and i get the following errors:
    4 Project link errors
      Undefined symbol '___UFRNameTable' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
      Undefined symbol '___CompiledDebuggingLevel' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
      Undefined symbol '___PtrInfoFixupTable' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
      Undefined symbol '___CVI_Sections' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
    I tryed it on two machines and i also tryed to create an exetuable (after adding main function to the project).
    I also tryed to create a new project
    Thanks for help

    I am having the exact same problem, but only when do a release build.  The debug build works fine.
    Errors generated when performing a 'release' build'
    clear_history_ecu_data.prj(Release) - 4 link errors
     Undefined symbol '___CompiledDebuggingLevel' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib".
     Undefined symbol '___PtrInfoFixupTable' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib".
     Undefined symbol '___CVI_Sections' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib".
     Undefined symbol '___UFRNameTable' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib". 
    I am using CVI 2009.
    I have deleted the build folder and marked all for recompile.
    Any suggestions?
    Thanx,
    thefalk

  • Keithley 2701 and _KE2700_in​itwithopti​ons LINK error

    Hi
    My labwindows compiler does not like to compile my programme which used the KE2700_Init or INit with options
    it comes up with Project Link Error for the fuction?
    any ideas?
    Thanks

    I think I had the package
    looking at the two CWS files I noticed the addresses were different, the address to the DLL missing.
    I had to add the .fp fpr Keithley to the CVI. I thought the thing adds itself when it comes up.
    I had the same problem with INI routines and I had to add those too.
    thanks

  • VC++ 6 Linker Errors from converted CVI project

    I am getting numerous LNK2005 link errors for functions within the following .obj files: easytab.obj
    inifile.obj
    toolbar.obj
    The weird thing is that all of them say that the functions are like this:
    toolbar.obj : error LNK2005: _Toolbar_GetCtrlFromDescription already defined in toolbar.obj
    I also get several LNK2001 errors (unresolved external symbol)
    Any help will be greatly appreciated.
    Thanks,
    Richard

    It sounds like you have these OBJ files included twice in the VC++ project. Check and see in the Project->Settings... under the Link tab if they are listed twice. If they are, remove the duplicate entries. Even if they aren't you may want to try removing them from this list in case they are being linked again in another way.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Linker Error during compiling ODBC WinCE C++_Sample Project

    I am devloping a ODBC application for PocketPC2003 using OLite 10g Release 10.3.0.2. before that i am understanding the sample application provided with Olite.
    I followed all the instructions provided in ReadMe.txt file available before using VC++ sample. After making all the settings and compiling i am getting following linker errors as mentioned below.
    Any solution for this problem at the earliest will be appreciated, i have tried link all the libraries provided with WinCE armv4.
    Linker Error Messages:
    Error     1     error LNK2019: unresolved external symbol SQLExecDirect referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     2     error LNK2019: unresolved external symbol SQLFreeStmt referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     3     error LNK2019: unresolved external symbol SQLGetData referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     4     error LNK2019: unresolved external symbol SQLFetch referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     5     error LNK2019: unresolved external symbol SQLFreeEnv referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     6     error LNK2019: unresolved external symbol SQLFreeConnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     7     error LNK2019: unresolved external symbol SQLDisconnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     8     error LNK2019: unresolved external symbol SQLConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     9     error LNK2019: unresolved external symbol SQLAllocConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     10     error LNK2019: unresolved external symbol SQLAllocEnv referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     11     error LNK2019: unresolved external symbol SQLError referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     12     error LNK2019: unresolved external symbol SQLDescribeCol referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     13     error LNK2019: unresolved external symbol SQLNumResultCols referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     14     error LNK2019: unresolved external symbol SQLAllocStmt referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj

    Hi,
    The OLITE forum (Database Mobile Server (inc. legacy Database Lite) would be a better place to post your issue. This forum deals with the ODBC driver that connects to a "normal" Oracle database.
    Hope it helps,
    Greg
    Edited by: gdarling on Nov 12, 2008 8:31 AM

  • Sub conttacting purchase order with Project link

    dear all,
    i have a confusion.
    when we create normal sub con PO, it works fine. but when i create  it w r t project link (account assignment Q & item catagory L)
    at the time of goods issue against purchase order it show error :
    no materials available for this PO.
    why system behave like that ?
    how to resolve this problem ?

    Hi
    Normal subcontract the consumption of components happenes by 543-o movement type. When you give account assignment Q in PO the consumption happenes via 543 Q. Which is not a vendor stock, it is a project stock. So system will not allow you to send components to vendor via 541. This is normall scenario in Make to order scenario.
    What you need to do is, Go to material masters of compnenets and MRP-4 view give "individual.coll" field as 2 that is collective requirement only. Then system will consume stock from 543-o. So it will allow to issue material using 541 for subcontracting PO.
    Regards
    Antony

  • Works in 2009, Link errors in 2013 SP1

       I have a system that runs rack mount test instruments.  I have a system DLL that performs different generic  functions for me and also included custom driver functions for the instrumentation.  This DLL is built and the different driver .h/.fp files and the system DLL library file are distributed.  The distributed files are included in various test projects.   
       This approach has worked for the last 2 years using CVI2009.  I recently started trying to use CVI2013 SP1.  The system DLL still builds with no errors.  However, my various test DLL that use the distributed files, now compile fine, but have Undefined symbol link errors.  The link errors point to functions and structures that are global to the system DLL, but weren't meant for exported use by the test DLLs.  The files the link errors call out are .obj files for a couple of different system drivers that are located in the build folder that CVI created.  Anyone experienced anything like this while upgrading to CVI2013?

    Hello HeadTrauma, 
    I think it might be worth checking that you have your library set to a dynamically linked library.  The behavior you are receiving seems akin to changing a dynamically linked library to a statically linked library.  This could happen automatically in an upgrade.  For information on how to set this, please view the following link: 
    http://digital.ni.com/public.nsf/allkb/BF8084DB74021EE986257AB200001737
    Best wishes!
    Amanda B.
    Applications Engineer
    National Instruments

  • Build Collada DOM 2.2 in X-Code and got _unZOpen, Close a link errors

    I am trying to build Collada DOM 2.2 in XCode and getting following link error.
    Collada DOM is providing minizip (library) which contains zip.h and unzip.h, which is called after calling mac libraries; Is any way I can specify in XCode project build specifications to read minizip from Collada first?
    Building target “viewer” of project “viewer” with configuration “Debug” — (8 errors)
    "_unzGoToNextFile", referenced from:
    daeZAEUncompressHandler::extractArchive(void*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libdom.a(daeZAEUncompressHandler.o)
    "_unzGetCurrentFileInfo", referenced from:
    daeZAEUncompressHandler::extractFile(void*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libdom.a(daeZAEUncompressHandler.o)
    "_unzCloseCurrentFile", referenced from:
    daeZAEUncompressHandler::extractFile(void*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libdom.a(daeZAEUncompressHandler.o)
    "_unzOpenCurrentFile", referenced from:
    daeZAEUncompressHandler::extractFile(void*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libdom.a(daeZAEUncompressHandler.o)
    "_unzReadCurrentFile", referenced from:
    daeZAEUncompressHandler::extractFile(void*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libdom.a(daeZAEUncompressHandler.o)
    "_unzGetGlobalInfo", referenced from:
    daeZAEUncompressHandler::extractArchive(void*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libdom.a(daeZAEUncompressHandler.o)
    "_unzClose", referenced from:
    daeZAEUncompressHandler::~daeZAEUncompressHandler()in libdom.a(daeZAEUncompressHandler.o)
    "_unzOpen", referenced from:
    daeZAEUncompressHandler::daeZAEUncompressHandler(daeURI const&)in libdom.a(daeZAEUncompressHandler.o)
    Your help greatly appreciated.
    Thanks

    Please look into following link
    https://sourceforge.net/forum/forum.php?threadid=2643729&forumid=531263

  • [CS4] Porting plugin from Indesign CS3 to CS4 c++ linking error

    I am hoping to upgrade our current plugin to the latest version of Indesign CS4.
    I've downloaded and unpacked the new Indesign CS4 SDK and have read the porting guide.  I've not seen anything obvious relating to this issue.
    This is using Visual Studios 2005 SP1 with InDesignCS4ProductsSDK_Build578.
    It appears that through the headers that I don't end up with any compile issues.  However in linking my current project is unable to find just a couple of external symbols.
    ItemSelection.obj : error LNK2019: unresolved external symbol "public: void __thiscall K2Internals::K2VectorBase<class IDType<struct PMIID_tag>,class K2Allocator<class IDType<struct PMIID_tag> > >::fill_insert(class IDType<struct PMIID_tag> *,unsigned int,class IDType<struct PMIID_tag> const &)" (?fill_insert@?$K2VectorBase@V?$IDType@UPMIID_tag@@@@V?$K2Allocator@V?$IDType@UPMIID_tag@ @@@@@@K2Internals@@QAEXPAV?$IDType@UPMIID_tag@@@@IABV3@@Z) referenced in function "public: virtual class K2Vector<class IDType<struct PMIID_tag>,class K2Allocator<class IDType<struct PMIID_tag> > > * __thiscall SelectionSuiteCSB::CreateObserverProtocolCollection(void)" (?CreateObserverProtocolCollection@SelectionSuiteCSB@@UAEPAV?$K2Vector@V?$IDType@UPMIID_t ag@@@@V?$K2Allocator@V?$IDType@UPMIID_tag@@@@@@@@XZ)
    Convert.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class PMReal __thiscall PMMatrix::operator[](int)const " (__imp_??APMMatrix@@QBE?AVPMReal@@H@Z) referenced in function "class Ipg3::Matrix __cdecl ConvertMatrix(class PMMatrix const &)" (?ConvertMatrix@@YA?AVMatrix@Ipg3@@ABVPMMatrix@@@Z)
    Does anyone have any ideas of where I should look next?
    Paul Cooley

    Ian,  Thanks.  That did solve the K2Vector problems.
    Are you aware of which .tpp covers the PMMatrix class?  That would probably make this linking error:
    Convert.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class PMReal __thiscall PMMatrix::operator[](int)const " (__imp_??APMMatrix@@QBE?AVPMReal@@H@Z) referenced in function "class Ipg3::Matrix __cdecl ConvertMatrix(class PMMatrix const &)" (?ConvertMatrix@@YA?AVMatrix@Ipg3@@ABVPMMatrix@@@Z)

  • CS6:Server Link Error:"file not found: @executable_path/ObjectModelLib.dylib" ?

    Hi all,
    I'm trying to update my old code in CS5.5 for building new CS6( Server build), i get the link error "file not found: @executable_path/ObjectModelLib.dylib  " not sure what I missing in my project settings/items? Any thoughts or help would greatly appreciated.
    Thanks,
    Kamran
    P.S I use Mac OS X 10.6.8 and Xcode 3.2.6. for Model & UI build for the same project it builds fine.

    Never mind guys, I can compile it fine now :-)
    -Kamran

  • 'Link errors' while compiling Palm OS app using CodeWarrior

    I tried to compile the the sample application given in Oracle 9i lite MDK (Mobile Development Kit) using Codewarrior demo version 8 and it gave me a lot of link errors. Further more the okapi used were being termed as undefined, probably because the librabry files were not found, even though the lib files were included in the project.
    Please help...I've been stuck at this point for quite some time now.
    Regards
    Ripu

    Hi Rao,
    As Timo said, it is difficult to say the exact solution to your problem but you can try below suggestions as well.
    1. Schema check: the entity objects which you are referring might have got schema changes (lets say it is in XX_SCHMEA1 today and now they might be in XX_SCHEMA2, it happened for me in my earlier project where DBA team has moved the tables to a different schema totally). In that case, you need to edit your code to update the correct schema.
    2. Alias check: Open any of the entity for which you got error and check in the editor if it got any wrong alias name infront of it "XX_SCHEMA1.XX_TABLE_1", you can remove this alias and try again ( this happens when you modify the Configuration in AM -> Connection Type, for e.g. you converted it to "JDBC URL" from "JDBC DataSource" and in that case, you can manually delete those alias names infront of all entities because all your VOs are referring to entities without that alias (unless you refresh your vos)
    3. For entities, check the Tables as well as Synonym in case if these tables are synonym in the schema you used for your entities.
    4. Username/Password check: To do a bulk change, right click on Model project->click on "ADF Business Components"->check the connection details and see if anything got changed (like username/password). You can edit and test the connection to see if that is working or not.
    Regards,
    Ravi Nuka.

  • Adobe Dynamic Link Error

    Lately, when I try to open a Premiere Pro CS3 or CS4 project in Encore CS4, I set this error message: "an adobe dynamic link error occurred". It used to work but now it doesn't. Anyone know why?

    Something went corrupted in your system you will have to run the Clean-up Scripts and reinstall.
    Best thing to have full functioning Reinstall from a Clean Formated hard Drive
    Regards
    Julio Cesar

  • Dynamic Link Error when sending sequence to AME

    Hi,
    I have a very short sequence without errors in premiere pro, but when I drag the project over to Adobe Media Encoder, I get a "Dynamic Link Error"...
    "There was an error when adding selected sequence to the batch".
    Any ideas on how I can fix this?  Currently I have to export sequences one at a time, and that's not going to be cool in the near future.
    Premiere pro 6.0.5
    Adobe media encoder 6.0.1.31
    ---Trav

    Have you tried Queuing from PP instead of dragging?

Maybe you are looking for

  • Best Practice to generate UUIDs in a Cluster-Server Environment

    Hi all, I just need some inputs over the best practices to generate UUIDs in typical internet world where there are multiple servers/JVMs involved for load balancing or traffic distribution etc. I know JAVA is shipped with very efficient UUID generat

  • Blog post: Embedded Software: Disruptions Ahead - Why Java makes sense

    All, You may be interested in this blog post I did two days ago, which talks about the challenges in embedded software design and why Java makes sense for embedded software engineering: https://terrencebarr.wordpress.com/2013/08/05/embedded-software-

  • Can I filter a liked photo from a lightroom mobile public link?

    New to Lightroom so maybe I'm missing it but when someone likes a photo from a lightroom mobile public link how can I have a smart collection filter it? I understand how to if they add a comment but that is time consuming for them, liking a photo and

  • Identical ID in two or more dimensions encountered during transport issue.

    Hi there, we encountered an issue WHEN having members IDENTICAL ID in two or more dimensions. Example: ACCOUNT Dim; member 1000 = Cash MATERIAL Dim: member 1000 = Plastic Cup When in a report, we are showing only ACCOUNT members in the rows (hardcode

  • Rates to call mobile phones in Kenya

    Hi there, I feel being mislead by the calling rates advertised for calls to mobile phones in Kenya, calling from Switzerland. The page with the rates state CHF 0.29/min plus a connection fee of CHF 0.13 and 0.22 for mobiles. However I was charged CHF