How to build sqlite 3 stdcall library

Hi Friends,
Tool:Visual Studio 2010
I have a MFC vc++ application which depends upon 3 dlls with calling type as _STDCALL. Now i have to use SQLite3 database with the application as a library .
But unfortunately i cannot build a static library or dll with STDCALL. It gives me compilation error while doing so. But compiles perfectly with CDECL convention.
Can you please tell me steps to build with STDCALL ? Or how to overcome this problem?
Many Thanks!  Selva
Selvakumar

Hi Shu Hu,
When i tried to construct  stdcall lib myself with sqlite amalgamation code, i get the follwoing compilation error..
> Compilation error
cannot convert symbol qsort(int *...)stdcall to qsort(int *...)cdecl..
in the stdlib.h of sqlite package
I googled for this ,got an advise that SQLite3 cannot be compiled with STDLIB standards. 
So i rebuilt ,all my other dependent  projects with CDECL
Sorry for late reply. 
Thanks,
Selva
Selvakumar

Similar Messages

  • How to build a shared library (dll) of a VI to be called by VC++

    hi All,
    How should I build a shared library ( dll ) using LabVIEW so that the desired output from LabVIEW can be returned to the main program that runs in VC++ ?
    I'm currently working in a project that uses the PXI 1042 & DMM, AWG, FGEN, SCOPE, RFSG, RFSA etc.
    The VC++ programmers dont want the LabVIEW front-end to be visible when called into VC++, in the sense they don't want LV to be another front-end, as the entire software is designed using VC++. It is enough if I simply pass the final values of measurement to them for display purpose.
    So, they've asked me if it is possible in LabVIEW to provide the VIs as dlls instead of exes.
    Since I've seen the feasibility of building a EXE or a DLL in LV, I've replied positively to them.
    In another of my project, I'm using dlls built in VC++ for hardware drive interaction parts in my LabVIEW project.
    Likewise, what are the methodologies that I should follow when building a Dll in LV ?
    I tried with a simple VI, wherein it returns a value of addtion of 2 elements & I passed it thro' the connector pane correctly.
    When I called the same dll in LV itself & configured it correctly by specifying the correct return type & I/O, then also it did not run properly.
    I could not understand what was going.
    So experts pls help me out by some simple examples or related links.
    Regards & Thanks,
    Partha.
    - Partha
    LabVIEW - Wires that catch bugs!

    Here you can find Application Notes and examples:
    http://zone.ni.com/devzone/devzone.nsf/webcategories/98D192CDCCDA21EE86256AB7006BECAF
    Hope this helps!

  • How to build my iphoto7 library

    I am moving data from my pb g4 to my new imac 20 inch. I did my itunes already, just dragged and dropped. But iphoto appears to have events and might want to keep my stuff somewhat organized from the beginning. How should I go about moving my photos in? Drag and drop manually for each set that looks like they went together? Can I easily re-organize once they are in there?
    They are all backed up already.
    Any insight and tips would be great. Thanks in advance.

    You can use Migration Assistant to move all you data and settings to your new Mac. Migration Assistant is in your /Applications/Utilities folder.

  • How to link a native library that jni method needs in Linux?

    I'm trying to convert a simple driver using JNI to java in Linux. The driver uses native methods (written in C) that are implemented in a static library eth.a, so I don't have a source code for these methods. Everything works fine when pure C-code program is used, however when I'm trying to use java-program where native methods (which naturally need these driver-functions in eth.a) I got a following error:
    LibPath= /usr/kahvi/ioapi/
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/kahvi/ioapi/libEthDriver.so: /usr/kahvi/ioapi/libEthDriver.so: undefined symbol: DDI_DevOpenNode
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1354)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1278)
    at java.lang.Runtime.loadLibrary0(Runtime.java:466)
    at java.lang.System.loadLibrary(System.java:771)
    at EthernetDriver.<clinit>(EthernetDriver.java:89)
    DDI_DevOpenNode is the first method that program uses from eth.a -library.
    I have tried several different linking option such as:
    gcc -o libEthDriver.so -DLINUX -DETH_UNIX -shared -Wl,-soname,libEthDriver.so -I/usr/jdk1.2.2/include -I/usr/jdk1.2.2/include/linux/ -I/usr/kahvi/ioapi/inc/ EthernetDriver.c -static -lc
    eth.a is located in /inc directory and LD_LOAD_LIBRARY is used properly.
    If I include eth.a directly to compilation options (which I'm not sure how to do), the error message is following:
    LibPath= /usr/kahvi/ioapi/
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/kahvi/ioapi/libEthDriver.so: eth.a: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1354)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1278)
    at java.lang.Runtime.loadLibrary0(Runtime.java:466)
    at java.lang.System.loadLibrary(System.java:771)
    at EthernetDriver.<clinit>(EthernetDriver.java:89)
    So the basic problem is quite simple, how to implement a JNI-method that uses a functions implemented in another library?
    Any help is very much appreciated, because I have tried to solve this a few days and I don't have clues how to move on.
    -ML

    What people are trying to point out is that you can't use that static library to resolve native methods. Native methods resolve to shared libraries. So you need to write a shared library that links with the static library and wraps the functions you want to export from the shared library. Check your compiler/linker documentation on how to build a shared library. (IIRC, something like -shared for gcc).
    God bless,
    -Toby Reyelts
    Check out the free, open-source JNI toolkit, Jace - http://jace.reyelts.com/jace

  • When I launch I photo it wants me to choose a library but it doesn't find one which is impossible, because i still have no storage. before i can clean up i want to back up them. how can i find my library?

    When I launch I photo it wants me to choose a library but it doesn't find one which is impossible, because i still have no storage. before i can clean up i want to back up them. how can i find my library?

    You may very well have damaged your library - or even your system by not having adaquate storage available
    And never select all of the pitcture and move them - that will destroy your library - the iPhotolibrary is a SQLite database and must always be kept intact as a single entity -
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • What is the best way to re-build an iphoto library with 10,000+ images?

    The iphoto built in library rebuild function does not find the 10,000 photos that are in my originals and data folders. Why not? Also, If I use the Fat Cat software to build a new library will it it create 10,000 new files?
    I eventually want to remove these files from my computer all together, but I want to organize them first.
    These photos used to be in iphoto, but when I upgraded to Mountain Lion my iphoto library kind of emptied itself.
    Honestly, I would skip putting these 10,000 photos back into iphoto and simply put them on an external if finding the files in the iphoto library "folder" wasn't so complicated. It's not nesessary for me to store all of my photos on my laptop hard drive, but I'm an artists and a documentor so i would like to keep them.
    Thanks for any and all advice!!!
    I've been reading lots of threads on here and the information is soooo good and helpful. At least now I have some idea of how iphoto works where a few days ago it felt like magic!

    Yes, move them:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Do you think iphoto's normal rebuild function might work when I'm telling it to look for my externally located library?
    Impossible to say, but worth a try. If not then:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption. 
    Regards
    TD

  • How to build Perfctr 32-bit libray on 64-bit AMD machine

    Dear all,
    I have downloaded perfctrl library (used by "collect" tool) as this is required by collect tool for getting performance data from underline system.
    from http://user.it.uu.se/~mikpe/linux/perfctr/2.6/perfctr-2.6.34.tar.gz
    OS
    Linux MyMachine 2.6.18-92.el5.src-PAPI #1 SMP Tue Jan 27 10:57:40 CET 2009 x86_64 x86_64 x86_64 GNU/Linux
    Architecture
    AMD 64 bits (Family 10h) or x86_64
    I am using Java version
    $ java -version
    java version "1.6.0_10"
    Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
    Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
    My question is that when i install using defaults, perfctr user library installs 64-bit of libray version that can be used with 64-bit JVM
    but i need to use or get performance data using "collect" tool and 32-bit JVM, for that i think i need 32-bit version of "perfctr" library
    So i want to know can any body kindly tell me how to build 32-bit "perfctl" library on my system.
    Many Thanks

    You are correct - you will need to build a 32-bit perfctr user library to profile 32-bit applications.
    The analyzer team has only built this library on 32-bit systems (and copied the library to the 64-bit systems). Some users have built the 32-bit version on 64-bit system, but we don't know the specific changes they made to the perctr build. I'm sorry I couldn't be more help at this time.

  • How do I restore iTunes library from flash drive backup?

    How do I restore iTunes library from flash drive backup?

    brigdool wrote:
    How do I restore iTunes library from flash drive backup?
    HI Brigdool,
    It depends how you made the backup.
    If you copied your entire iTunes folder onto the flash drive, just copy it back to the appropriate place on the computer.
    If you copied individual folders or files, add them back to iTunes by inserting the flash drive in your computer, and then dragging the files into your "Automatically Add to iTunes" folder.
    The first method recreates your library as it was, with all playcounts, playlists, etc.  The second method builds a new library with the same content.

  • How to build Table of Content in Crystal Reports

    Hi,
    Initially, I am looking for an article about how to build Table of Content in Crystal Reports in table-based approach----including how to write to DB table from report:
    http://support.businessobjects.com/library/kbase/articles/c2011950.asp
    However, the link above is invalid. I also searched through SDN articles, but no luck.
    Can someone please forward me the link if you happend to know?---does not have to link to this specific article, any working solution is just fine.
    I am aware of another approach which put the TOC to the end of the report(http://www.ml-consult.co.uk/cryst-05.htm), which probably does not satisfy the requirement.
    If you have other solutions, your share is greatly appreciated.
    Thanks a ton!

    [Is it possible to create a table of contents in Crystal Reports?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]

  • How I build my own libraries of classes/methods in java ?

    How I build my own libraries of classes/methods in java ? how then I refer a functionX() (i mean method) in LibraryX ? can you give a short/brief example of a library with a class with a method and a main method of normal class calling this method (of external's added library's) ?

    Just another cross poster.
    [http://www.java-forums.org/new-java/12389-how-i-build-my-own-libraries-classes-methods-java.html]
    db
    edit And [http://forums.java.net/jive/thread.jspa?messageID=305387]
    Edited by: Darryl.Burke

  • GCCFSS does not correctly build sqlite

    I tried to build sqlite with gccfss but to no avail. There are strange problems executing the code.
    OS: Solaris 10 8/07 s10s_u4wos_12b SPARC
    gccfss: 4.2.0, 4.2.1
    sqlite: 3.5.9, 3.6.6.2
    python-sqlite: 2.3.3, 2.5.1
    Python: 2.5.2 (r252:60911, Nov 13 2008, 23:09:26) [GCC 4.2.0 (gccfss)] on sunos5
    sqlite build configuration:
    CFLAGS="-O2 -g -m32 -mcpu=ultrasparc -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -Wall"
    or CFLAGS="-O0 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -Wall"
    ./configure host=sparcv9-sun-solaris2.10 build=sparcv9-sun-solaris2.10 target=sparcv9-sun-solaris2.10 disable-tcl disable-static enable-utf8 enable-threadsafe enable-threads-override-locks --enable-load-extension
    Symptoms:
    - sqlite can not handle subselect/nested SQL statements with "as" clause, column alias names are ignored
    - sqlite seems to be unable to use some indexes
    - creating sqlite database works, though
    - python-sqlite (http://www.pysqlite.org) test gives: FAILED (failures=4, errors=3) or breaks with bus error in the sqlite journal writing code
    The python-sqlite test errors are "KeyError: 'a'", "IndexError: No item with that key", or "OperationalError: no such column: x" and assertion errors, which seem to be very strange because everything else seem to work. Note that I have to skip the sqlite tests because I don't have tcl/tk installed so I use the python-sqlite test instead.
    I have tracked down the issue to gccfss because building sqlite with /usr/sfw/bin/gcc 3.4.3 (csl-sol210-3_4-branch+sol_rpath) works flawlessly and all python-sqlite tests succeed.
    So, I don't know how to help myself and I ask you for any hints how I can successfully build sqlite with gccfss. It confuses me that even -O0 does not work for me.
    Hope this helps. I have python-sqlite test logs and gdb backtraces available but I don't want to flood this forum.
    Best regards,
    Jörg

    We will try to reproduce your problem in house and come back with any workarounds or suggestions. Thank you for reporting this.
    Prashanth

  • How can I import a  library ??

    How can use the WSDP library of inside Java SDK? I want to use the javax.servlet class but it is not available in SDK, however it is available in WSDP .How can I import them into Java1.4.1 Applications ?
    2nd:I have already set JAVA_HOME & ANT_HOME as permenant Environment Variables .the ant build command gives me a message that the setenv.bat is not recognized .
    The problem is that setenv.batch is in another directory of the ANT_HOME's and I don't know what variable I should use to point to it.

    What classes in particular are you wanting to use? If they're sitting there as jars on your box -- add them to your classpath when you compile/execute and all should be well.
    Some of these classes will most likely have dependencies upon classes associated with the J2EE platform (considering that a good deal of them are fashioned to execute inside of some form of servlet container) -- so, it's a wise idea to go ahead and grab the J2EE SDK as well.
    And, people do care, they just don't care for someone that nags.

  • I have ipad 1 how do i move my library from my very old computer to my new laptop i dont know what the difference is in mac or pc either and i havent backed up my library on the old one because its so slow

    i have an ipad 1 how do i move my library (for old ipod nano)( this a brand new ipad i hvaent synced yet) thats on a 2001 computer to my new laptop i got last christmas. i havent backed up anything cause the old computer is too slow. i tried home sharing but it just wont work. the help gave me an option of moving everything on my ipad and then moving it to the laptop. im just afraid that it will delete everyhting cause it doesnt mention ipad

    I found this article some time ago when I was trying to help someone else in this same situation. This is a copy and paste from the website. The website is provided below for you to read before you try this.
    Plug your phone into iTunes
    Click setup as a new device
    Immediately unplug your phone from the computer
    Give it about 30 seconds and iTunes will give a message (I don’t remember the specific, but regarding you unplugging the device and it not completing)
    Plug your phone back in
    Viola! no restore occurred and you can access everything again
    This computer has previously synced with an iPhone or another iOS device.

  • How to build a Oracle style Web site

    Dear All,
    (Not sure whether this question should be this sub-site or not.)
    My question is how to build a Oracle style Web site, what technology should be use.
    Example Site: [http://www.orapub.net/ebs/index.htm|http://www.orapub.net/ebs/index.htm]
    This web site style is like Oracle Enterprise Manager.
    Thanks a lot
    Pan

    You can use Oracle Webcenter or just Oracle ADF to build a Oracle Enterprise Manager kind of Website.
    See details here -
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ria_application/developriaapplication_long.htm
    http://www.youtube.com/watch?v=iE2zTNhlvy8

  • Help Please..Until recently I have owed 2 iPod Classics - 2007 80gb and 2009 160gb (which has since been returned). How do I transfer the library from the 160 to the 80gb in iTunes using Windows Vista (ie merge the 2 libraries)? Thanks

    Until recently I have owed 2 iPod Classics - 2007 80gb and 2009 160gb (which has since been returned as it had a very noisy hard drive).
    How do I transfer the library from the 160gb  to the 80gb in iTunes using Windows Vista.
    Nothing seems to help on the Apple support pages, so any help would be appreciated
    Thanks

    Thanks for the reply, but not actually sure how to sync a second iPod with the library of the first, as I thought it would not recognise a new iPod for copyright reasons.
    Also, the files are in a location on the pc but I had to do lots of formatting amendments in iTunes as most of the stuff was on mp3 files and the formatting was all over the place. I did not want to loose any of the work by simply asking the new iPod to look at the original file and would rather copy en masse from one device to another.
    Any help or pointers greatly appreciated
    Thanks

Maybe you are looking for