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

Similar Messages

  • Re: Link error during fcompile

    Hi Jeanne:
    I have already gone trough the procedure you have described but the
    result is same.
    When I invoke link command on all the *.obj files with some libraries
    from forte and
    MSVC/Lib I get the same Error. The command I am invoking is
    C:\> link *.obj *.lib
    Assuming that I am in the dir where all .obj files are and I have copied
    all required .lib files in this dir. Other thing that I have also tried
    this with different link flags and/or with exact flags from Forte log
    file.
    Thanks for your respons.
    Any othe suggestions please?
    --Shahzad
    Jeanne Hesler wrote:
    Shahzad,
    Have you tried manually invoking the link command itself from the
    command
    line? I was able to do this successfully when having problems with
    the
    Borland compiler under 16-bit windows. It is not a long-term
    solution,
    because you obviously want fcompile to handle the entire task, but it
    might
    help you determine if it is a problem with the fcompile or the linker
    itself.
    I executed the fcompile from a DOS window in the ...codegen\myapp
    directory. When the error occurred, I found the log file that is
    created
    from the fcompile, and determined the last command that was executed.
    I
    can't tell you the exact specifics here, because I have not had
    problems
    with fcompile using the MSVC compiler. But I am assuming that Forte
    is
    consistent about writing the compiler output to a log file. I could
    then
    copy the command line from the log file to the command line in the dos
    window and execute it manually.
    You have to be careful copying the command line, because there are a
    lot of
    flags, and they ARE case-sensitive. If you get the same error when
    invoking the command manually, then you can assume that the problem is
    with
    the compiler itself, or as it was in my case, with the compiler
    setup. If
    the command is successful when you execute it manually, then you can
    pursue
    it as a problem with the fcompile.
    One other thought -- you might make sure that you have plenty of extra
    disk
    space. Compilers like to write temporary files during the compile
    process.
    On a very large compile, you might need a lot of working space for
    these
    temporary files. I believe the MSVC compiler writes these files to
    the
    directory indicated by the environment variable TMP (not TEMP).
    Hope this helps,
    At 11:22 AM 10/17/97 -0400, you wrote:
    Hi,
    I am getting this error during fcompile of a large (12MB) pgffile
    link: fatal error LNK1141: failure during build of exportes file
    error during compilation, aborting
    This is under Windows NT and MSVC compiler. MSVC Documetation saysthat
    this could be due
    to insufficient memory. But we have 0.5Geg ram and I don't even seeall
    memory being utilized during compile.
    Any clues?
    --Shahzad
    --Jeanne
    ============================================================
    Jeanne Hesler [email protected]
    ============================================================

    The way to handle this is to break down the fcompile. Here is the
    process:
    1. fcompile -nocompile -fm "(x:40000)"
    this will produce the CPP and H files
    2. fcompile -nogen -fm "(x:40000)"
    this will link the files and produce the exe.
    If there is an error then you will know exactly where its happening.
    Hope this helps.
    Kamran Amin
    Technical Leader, Software Engineering
    Oxford Health Plan
    http://www.oxhp.com/
    From: Chaudary M. Shahzad[SMTP:[email protected]]
    Sent: Friday, October 17, 1997 7:05 PM
    To: [email protected]
    Subject: Re: Link error during fcompile
    Bruce:
    I have tried that I have even tried
    fcompile -fm '(x:400000)'
    It seems like its the Microsoft Compiler and/or Linker problem. There
    have to be some flags for compiler or linker I can
    set with fcomile so it allocate more memory for the MSVC linker.
    Any more clues or help ????
    --Shahzad
    Bruce Lipson wrote:
    Chaudary,
    There are flags for setting the usage of memory by the fcompile
    command.
    fcompile -fm '(x:250000)'
    where x:250000 sets the maximum amount of memory fcompile will use to
    250k.
    the default is 64k.
    Get it a try.
    Bruce Lipson
    [email protected]
    -----Original Message-----
    From: Chaudary Shahzad [SMTP:[email protected]]
    Sent: Friday, October 17, 1997 11:22 AM
    To: [email protected]
    Subject: Link error during fcompile
    Hi,
    I am getting this error during fcompile of a large (12MB) pgf
    file
    link: fatal error LNK1141: failure during build of exportes file
    error during compilation, aborting
    This is under Windows NT and MSVC compiler. MSVC Documetation says
    that
    this could be due
    to insufficient memory. But we have 0.5Geg ram and I don't even see
    all
    memory being utilized during compile.
    Any clues?
    --Shahzad

  • Link error during fcompile

    Hi,
    I am getting this error during fcompile of a large (12MB) pgf file
    link: fatal error LNK1141: failure during build of exportes file
    error during compilation, aborting
    This is under Windows NT and MSVC compiler. MSVC Documetation says that
    this could be due
    to insufficient memory. But we have 0.5Geg ram and I don't even see all
    memory being utilized during compile.
    Any clues?
    --Shahzad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    I am getting this error during fcompile of a large (12MB) pgf file
    link: fatal error LNK1141: failure during build of exportes file
    error during compilation, aborting
    This is under Windows NT and MSVC compiler. MSVC Documetation says that
    this could be due
    to insufficient memory. But we have 0.5Geg ram and I don't even see all
    memory being utilized during compile.
    Any clues?
    --Shahzad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • '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.

  • Jdeveloper 2.0-FATAL ERROR DURING COMPILING APPLET

    Can anyone help me about this error during the compilation of a
    applet?
    "Fatal error:cannot access class
    borland.jbcl.util.DispatchableEvent;no source found;must be
    compiled;because supefclass java.utilEventObject of class
    borland.jbcl.util.DispatchableEvent has changed"...
    1) how can i compile it?
    2) where can i find the source?
    another question..
    some compilation warning say me" there are some deprecatio
    warnig--consulting documentation for better alternative..
    Where are this documentation?
    Thanks
    null

    Official reply from Oracle via CS:
    "MacOSx 10.6.5 with Java 1.6.0_22 is not supported for JDeveloper version 11.1.1.2 and later. This has not been certified yet."

  • Asterisk error during compiling tith PKGBUILD

    hi,
    I have to install asterisk from AUR but giving the command makepkg (during compiling) he gives me this error...(i post the tail...)
    In file included from el.h:105,
    from readline.c:61:
    map.h:63: error: expected specifier-qualifier-list before 'el_func_t'
    map.h:77: error: expected declaration specifiers or '...' before 'el_func_t'
    readline.c: In function 'rl_initialize':
    readline.c:247: error: 'EL_NUM_FCNS' undeclared (first use in this function)
    readline.c:247: error: (Each undeclared identifier is reported only once
    readline.c:247: error: for each function it appears in.)
    readline.c:247: error: 'el_map_t' has no member named 'nfunc'
    readline.c:248: error: 'el_map_t' has no member named 'func'
    readline.c: In function 'filename_completion_function':
    readline.c:1206: warning: unused variable 'count'
    readline.c: In function 'rl_bind_key':
    readline.c:1609: error: 'ED_INSERT' undeclared (first use in this function)
    make[2]: *** [readline.o_a] Error 1
    make[1]: *** [editline/libedit.a] Error 2
    make: *** [main] Error 2
    ==> ERRORE: Compilazione interrotta. //italian *_^
    L'operazione sta per essere interrotta...
    what is the problem????
    ty for the help (and sorry for my english )

    Yes, have the same problem also here. It is strange because some people were able to compile it.
    May be, a compatibility problem with the GCC or libc version ? If I can install two versions of GCC/libc together on the same machine,  I'll try to compile it with an older GCC.

  • Ucbhook Linking error when compiling simucb.dll

    I'm trying to compile a simucb.dll and one of the linking errors is "ucbhook.obj : error LNK2001: unresolved external symbol _gstdwrt". Since ucbhook.c is generated automatically by MarixX and it presumably knows what it is doing, I'm guessing that I haven't included the library that defines gstdwrt in my C++ project. Does anyone know what this library is and where I should look for it? Thanks!
    Eric

    Thanks for the reply. My first question is: What is an Sa_user.cmd file and what's it look like? Is it like a makefile?
    I'm compiling an ugly mixture of C and legacy Fortran code. There is a user code block written in C (which the ucbhook function calls) which calls a Fortran function which then calls other Fortran functions. I don't know what that may do to the complexity of Sa_user.cmd. Currently, I'm learning how to use Microsoft Visual C++ to compile and link all my disparate files into a simucb.dll and I'm mired in the linking errors. Once I have the simucb.dll, I'm gonna stick that in my project directory and let MatrixX do its thing.

  • Linker error during TestStand deployment

    Using Version - LabVIEW 2014 and TestStand 2014
    Test Stand deployment failed so I am trying to narrow down the issue.
    Note:
    1. Create Installer option is not selected
    2. Everything has been mass compiled in LabVIEW 2014
    Step 1 -
    1. Selected Folder A which has around 70 LabVIEW controls 
    2. Build is successful
    Step 2 -
    1. Selected One single VI from Folder B
    2. Build Successful
    Step 3 -
    1. Selected that same VI from Folder B and Selected Folder A (combining step 1 and 2)
    2. Build Fail
    "LabVIEW returned a linker error but did not return any missing VIs. This can mean that the missing files are RC files or other similar dependencies. Mass compile your top-level files and resolve the errors reported. If the problem persists contact National Instruments for support."
    Other than "Enable SSE2 Optimization" none of the options are selected from LabVIEW VI Options.
    Any idea?
    Thanks,
    VS

    This may be useful:
    http://digital.ni.com/public.nsf/allkb/19F78E0B290BFA63862574F8005A9303

  • HAL & XML error during compilation

    Hi, I'm new to this so I hope that the question is not out of place. I'm using HAL to generate XML files. Whithin HAL, I pass some info to the XML adapter which when when the XML file is created, the new info is included in the xml file. <BR><BR>I do get this error during a run however. Any ideas would be greatly appreciated.<BR><BR><BR>Compiler error: Unable to analyze the flow diagram for compilation.<BR> Flow diagram-->> Flow Diagram1<BR>Analysis error: [Error: 1001] No matching generator found for the collector: <BR> Adapter reference-->> Template.XML/BATCH_JOB_OBJECT \ Collect Elements<BR>Compiler error: Compilation succeeded but no code was generated.<BR> Flow diagram-->> Flow Diagram1<BR>Internal Vignette Business Integration Studio Error: <BR>Compile failed.<BR> 0 Warnings<BR> 1 Errors<BR>Error: Flow Diagram1 : The adapter's implementation cannot be made up to date.<BR>Build adapter process aborted due to errors.<BR> 0 Warnings<BR> 2 Errors<BR>

    Hi there,
    Thanks a lot.How do I tranfer duke dollars to u.

  • Linking errors during install on Linux Mandrake

    When I installed oracle (8.1.7) on linux mandrake I got a series of errors during
    the very last portion of the install involving a bunch of *.mk files.
    The first error says:
    Error invoking target relink of makefile
    $ORACLE_HOME/precomp/lib/ins_precomp.mk
    All the others are virtually identical. I'm still pretty new to linux so I avoided
    recompiling the kernel. Aside from that I followed the install instructions to the
    letter. If anyone knows whats going on I would very much appreciate a push in
    the right direction.

    Alright, I've tried using the most recent archboot (2011.02-2) a couple times. I selected GRUB2 x86_64 EFI. It asked me whether or not I wanted to convert my existing MBR to GPT. When I say no, it says installation was successful, when I say yes, it drops me into parted, so I just quit. My GPT should be fine as is.
    My issue is that now, in rEFIt, I only get OS X and Legacy OS options. Legacy just freezes my computer. The legacy option has been there since I last tried to install, though I've tried to get rid of it a few different ways.
    Should I choose a different bootloader option? Can I use the cd to boot in and fix it manually? if possible, I'd like to keep using rEFIt.

  • Database link error when compiling forms 6.0 and forms 6i.

    Dear sirs,
    We have a database link between two databases of the same version oracle 8.0.5.
    Recently we have upgraded one of our databases to version 9.2.0.1 (the database where the database link was originally created ) and now we are having problems when compiling forms that have PL/SQL blocks using the database link.
    The error message received when compiling the form is the following:
    ORA-02068: Following severe error from dbproduc.world
    ORA-00600: Internal error code, arguments: [No conversion op],[],[],[],[],[],[],[]
    The forms did not present this error before, it began when we made the upgrade.
    Is this a FORMS 6.0 problem ?
    Is this an ORACLE 8.0.5 problem ?
    Is this an ORACLE 9.2.0.1 problem ?
    Can you please give me some advice to solve this problem ?
    Thanks in advance

    As I see, when you use a non-oracle database the tables don`t appear, you must create the realation with the table manually, on the properties

  • Link error during install of O9i Application server

    Hi there.
    I have a problem when installing Oracle 9i Application Server rel. 1.0.2.2.0 on SuSE 7.3.
    During installation phase "Linking Oracle 9i Application Server rel. 1.0.2.2.0", I get: "Error invoking target install of makefile /
    opt/oracle/product/9.0.1/icache/lib/ins_icache.mk"
    The make.log states:
    building Oracle8i Cache Management Engine
    gcc -o /opt/oracle/product/9.0.1/bin/wtcme -L/opt/oracle/product/9.0.1/icache/lib/ -L/opt/oracle/product/9.0.1/lib/ /opt/oracle/pro
    duct/9.0.1/icache/lib/wtemain.o /opt/oracle/product/9.0.1/icache/lib/libicache.a /opt/oracle/product/9.0.1/lib/libwtc8.a /opt/oracle
    /product/9.0.1/icache/lib/libxml8.a \
    -lclntsh /opt/oracle/product/9.0.1/rdbms/lib/kpuadef.o `cat /opt/oracle/product/9.0.1/lib/ldflags` -lnsgr8 -lnzjs8 -ln8
    -lnl8 -lnro8 `cat /opt/oracle/product/9.0.1/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneri
    c8 -lwtc8 -lmm -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat /opt/oracle/product/9.0.1/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -lnl8 -ln
    ro8 `cat /opt/oracle/product/9.0.1/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -ltrac
    e8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `ca
    t /opt/oracle/product/9.0.1/lib/sysliblist` -ldl -lm \
    -lpthread -lc
    gcc: /opt/oracle/product/9.0.1/rdbms/lib/kpuadef.o: No such file or directory
    make: *** [opt/oracle/product/9.0.1/bin/wtcme] Error 1
    I had a similar problem when installing the database server software. This was fixed by editing the LD_SELF_CONTAINED parameter in
    genclntsh. This, however, does not help in this case.
    Kind regards,
    Roald Andresen

    Hi Melchor,
    Please follow SAP Note 1618816 - Permanent or Temporary License Already Exists In Systemcopy
    If possible please share files saplikey.log, dev_slic
    Regards,
    Gaurav

  • Linking error when compiling patched version

    I should understand this stuff better by now
    I'm trying to build a patched version of zoneminder includung the libv4l libraries to better support web cams. In zm_local_camera.cpp I've added
    #include <libv4l2.h>
    #include <libv4l1.h>
    and replaced all the ioctl() open() close() mmap() etc statements with the v4l2_ioctl()v4l2_ open() v4l2_close() v4l2_mmap() etc versions.
    The first stage of compiling goes without error, but then linking (relinking?) stage it bails with this error
    collect: relinking
    zm_local_camera.o: In function `vidioctl(int, int, void*)':
    zm_local_camera.cpp:(.text+0x2ff): undefined reference to `v4l2_ioctl'
    zm_local_camera.o: In function `LocalCamera::PostCapture()':
    zm_local_camera.cpp:(.text+0x4b8): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x50b): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x547): undefined reference to `v4l2_ioctl'
    zm_local_camera.o: In function `LocalCamera::Contrast(int)':
    zm_local_camera.cpp:(.text+0x9f2): undefined reference to `v4l2_ioctl'
    zm_local_camera.o:zm_local_camera.cpp:(.text+0xa1b): more undefined references to `v4l2_ioctl' follow
    zm_local_camera.o: In function `LocalCamera::GetCurrentSettings(char const*, char*, int, bool)':
    zm_local_camera.cpp:(.text+0x1d21): undefined reference to `v4l1_open'
    zm_local_camera.cpp:(.text+0x1d89): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x20a4): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x218d): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x257b): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x26ad): undefined reference to `v4l1_close'
    zm_local_camera.o: In function `LocalCamera::Terminate()':
    zm_local_camera.cpp:(.text+0x3e6f): undefined reference to `v4l1_close'
    zm_local_camera.cpp:(.text+0x3e9f): undefined reference to `v4l1_munmap'
    zm_local_camera.cpp:(.text+0x3f37): undefined reference to `v4l2_munmap'
    zm_local_camera.o: In function `LocalCamera::Initialise()':
    zm_local_camera.cpp:(.text+0x4182): undefined reference to `v4l1_open'
    zm_local_camera.cpp:(.text+0x4775): undefined reference to `v4l2_mmap'
    zm_local_camera.cpp:(.text+0x49b9): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x4a46): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x4a89): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x4ad8): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x4b0a): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x4b9d): undefined reference to `v4l1_mmap'
    zm_local_camera.cpp:(.text+0x560a): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x564d): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x5671): undefined reference to `v4l2_ioctl'
    zm_local_camera.cpp:(.text+0x56a3): undefined reference to `v4l2_ioctl'
    zm_local_camera.o: In function `LocalCamera::PrimeCapture()':
    zm_local_camera.cpp:(.text+0x6018): undefined reference to `v4l2_ioctl'
    collect2: ld returned 1 exit status
    make[2]: *** [zmc] Error 1
    Can someone tell me what I am missing. I will do my homework if someone can just give me a hint.

    The above suggestion worked the last time I built zoneminder, but when I tried upgrading today, with kernel 2.6.31 and the same exact zoneminder release (1.24.2), I'm getting the same error again.  As you can see, -lv4l1 and -lv4l2 are in the g++ command.  This is using the latest gcc package, 4.4.1, and I think the last build might have been on 4.4.0.  I've also upgraded x264 and ffmpeg to svn latest in the last couple of days, but I doubt that should have anything to do with is.  Can somebody help?  Thanks.
    make  all-recursive
    make[1]: Entering directory `/home/ben/abs/zoneminder/src/ZoneMinder-1.24.2'
    Making all in src
    make[2]: Entering directory `/home/ben/abs/zoneminder/src/ZoneMinder-1.24.2/src'
    g++ -frepo -march=x86-64 -mtune=generic -O2 -pipe  -L/usr/lib -L/usr/lib/mysql -Wl,--hash-style=gnu -Wl,--as-needed -lv4l1 -lv4l2 -o zmc  zmc.o zm_box.o zm_buffer.o zm_camera.o zm_comms.o zm_config.o zm_coord.o zm.o zm_db.o zm_debug.o zm_event.o zm_exception.o zm_file_camera.o zm_ffmpeg_camera.o zm_image.o zm_jpeg.o zm_local_camera.o zm_monitor.o zm_ffmpeg.o zm_mpeg.o zm_poly.o zm_regexp.o zm_remote_camera.o zm_remote_camera_http.o zm_remote_camera_rtsp.o zm_rtp.o zm_rtp_ctrl.o zm_rtp_data.o zm_rtp_source.o zm_rtsp.o zm_sdp.o zm_signal.ozm_stream.o zm_thread.o zm_time.o zm_timer.o zm_user.o zm_utils.o zm_zone.o  -lz -lbz2 -lswscale -lavformat -lavcodec -lavutil -lpcre -lcrypto -ldl -lpthread -ljpeg -lmysqlclient
    zm_local_camera.o: In function `vidioctl(int, int, void*)':
    zm_local_camera.cpp:(.text+0x28f): undefined reference to `v4l2_ioctl'
    zm_local_camera.o: In function `LocalCamera::PostCapture()':
    zm_local_camera.cpp:(.text+0x454): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x4a5): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x4de): undefined reference to `v4l1_ioctl'
    zm_local_camera.o: In function `LocalCamera::Contrast(int)':
    zm_local_camera.cpp:(.text+0x86b): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x891): undefined reference to `v4l1_ioctl'
    zm_local_camera.o:zm_local_camera.cpp:(.text+0xa6b): more undefined references to `v4l1_ioctl' follow
    zm_local_camera.o: In function `LocalCamera::GetCurrentSettings(char const*, char*, int, bool)':
    zm_local_camera.cpp:(.text+0x1866): undefined reference to `v4l1_open'
    zm_local_camera.cpp:(.text+0x18c8): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x1bbb): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x1c93): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x205a): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x2159): undefined reference to `v4l1_close'
    zm_local_camera.o: In function `LocalCamera::Terminate()':
    zm_local_camera.cpp:(.text+0x367d): undefined reference to `v4l1_close'
    zm_local_camera.cpp:(.text+0x36ac): undefined reference to `v4l1_munmap'
    zm_local_camera.cpp:(.text+0x3755): undefined reference to `v4l2_munmap'
    zm_local_camera.o: In function `LocalCamera::Initialise()':
    zm_local_camera.cpp:(.text+0x3939): undefined reference to `v4l1_open'
    zm_local_camera.cpp:(.text+0x3eaa): undefined reference to `v4l2_mmap'
    zm_local_camera.cpp:(.text+0x409d): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x413d): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x41ab): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x4207): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x4233): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x42aa): undefined reference to `v4l1_mmap'
    zm_local_camera.cpp:(.text+0x45e7): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x4633): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x4650): undefined reference to `v4l1_ioctl'
    zm_local_camera.cpp:(.text+0x467c): undefined reference to `v4l1_ioctl'
    zm_local_camera.o: In function `LocalCamera::PrimeCapture()':
    zm_local_camera.cpp:(.text+0x5320): undefined reference to `v4l1_ioctl'
    collect2: ld returned 1 exit status
    make[2]: *** [zmc] Error 1
    make[2]: Leaving directory `/home/ben/abs/zoneminder/src/ZoneMinder-1.24.2/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/ben/abs/zoneminder/src/ZoneMinder-1.24.2'
    make: *** [all] Error 2

  • Linker error when compiling Fortran code

    I have some problems when linking a Fortran program. The compiling (with gfortran) works without problems and produces (amongst others) several ".mod" files. As soon as the products are to be linked, these .mod-files provoke a "bad magic number (not a Mach-O file)" error from the linker.
    I use gcc 4.3 with gfortran. Any ideas?

    The .mod files are (at least in this case) the compiler products of source files with an .F90 extension (in contrast to source files with the lowercase .f90). I have to admit that I'm not very much into Fortran (I'm just trying to get this thing compiled), but the source files are actually treated differently depending on the lowercase or uppercase extension. I have read somewhere, what the precise difference is, but I cannot neither remember this right now nor find this again.

  • Linker error when compiling Fortran program

    I have some problems when linking a Fortran program. The compiling (with gfortran) works without problems and produces (amongst others) several ".mod" files. As soon as the products are to be linked, these .mod-files provoke a "bad magic number (not a Mach-O file)" error from the linker.
    I use gcc 4.3 with gfortran. Any ideas?
    Powerbook G4 12", 1.33 GHz/MacBook Pro 2GHz   Mac OS X (10.4.8)  

    Possibly, but the error doesn't come from gfortran itself, but from the linker (ld), so I don't see right now, why this should make a difference.
    You think it is because these .mod-files are compiled incorrectly?

Maybe you are looking for

  • What is the best way to  back up iTunes excluding external hard drive

    *iTunes gives you the option of backing up your library on CDs. It would take me 100s of CDs to back up my library. Is there any other way to back up excluding external hard drive? Can you put music on a DVD and fit more than on a CD? Having just had

  • All web images are being saved as web clippings...

    Dear Apple Community, For the past 2 days every image I try to save to my mac from a website (via Safari), remote server (ie: .me), etc. Is being saved as a .RTF web clipping. When I click on the files, TextEditor opens, but the file is empty even th

  • Duplicates and Deleted Songs

    Besides the duplicates problem, has anyone found music - installed from music CD - missing from their music library? I've found many albums missing from the library since the recently 9.1.1.xx upgrades. The folder still contains the album art, small

  • ITunes10 does not start from Data-Disk(error 13001)!

    After moving my user folder to an external disk I get the message "Could not open Application "iTunes". Unknown error 13001. Reinstalling iTunes did not help, neither did an alias of the iTunes-folder in the equivalent folder on my System-disk. Any h

  • Installation from download

    Intending to install Oracle 9i on Linux Redhat from files I have downloaded. Do I need to write the downloaded "disk" files to CDs? Otherwise how do 1 swap "disks" if I install using just downloaded files? JD