Programming :: Have Sqlite3 Headers And Start Using In Programs?
Sep 10, 2010
I'm new to database programming but I'm working in a project that makes use of sqlite3. I know I should #include <sqlite3.h> but it is not there.... i have just sqlite.h. can anyone tell me what to do to have the sqlite3 headers and start using them in my programs
I am programming with TCL on Ubuntu Linux. I need to access a SQLite3 database. I loaded the SQLite3 package using sudu apt-get install sqlite3. When I try to open the database in TCL I get the error "can't find package sqlite3"
The line of code is: "sqlite3 db /home/lana/CAL_development/databases/CpRoutine.db"
I also have "package require sqlite3" directive in the program.
I am learning network programming via a book of Richard Stevens.The sample source codes are given here http://www.unpbook.com/unpv13e.tar.gz I downloaded and unzipped the file in /usr/src folder.As per the instructions given in README of downloaded archive I did.
I have several classes that I use for multiple programs. Where should I keep the h/cpp files so I only have to add the #include for the compiler to find them?
Say, I have a header file containing all required includes: Code: /* global.h */ #include <stdio.h> #include <unistd.h> ... #include <dirent.h> #include <signal.h> ... /* and so on */
I have several modules in a program (*.h *.c files) and in each *.h I include global.h, then they are included in corresponding *.c files. And I receive strange messages from compiler, like a "warning: implicit declaration of function fdopendir", "error: expected declaration specifiers or '...' before 'siginfo_t' ", "error: 'DT_DIR' undeclared..." though these types, functions and constants are all declared in system headers. What does it mean?... Compiler is GCC 4.4.4-2, system is Fedora 13 x86_64
This compiles against g++ template headers but not against the icpc headers. Code: #include <string> #include <vector> template <typename T> class MyList : public std::vector< T* >{ };
template <typename T> class MyListIterator : public MyList<T>::iterator{ }; int main(){ MyListIterator< int > test; return 0; }
But it says it will also install gcc-4.8.. I checked my gcc version which is 4.9. and running. sudo apt-get install gcc . says gcc is already the new version.How do i install the headers without installing gcc-4.8
I feel like there should be a cleaner way of doing this. I have one file, for example "a.cpp", calling a function from another file, "b.cpp". Currently I have it set up so that header for "b", "b.h", has the declaration of its functions. And then I'm just including "b.h" in "a.cpp". Do I have to include the "b" header file in "a" to be able to call a function from "b"? Or is there a better way I could be doing this? Like doing something different at compile?
I'm trying to debug a module I programmed but I don't want to do it on the running host but against UML (don't want to reboot every 5 minutes).
The UML kernel I downloaded is 2.6.38.2. I have already downloaded the ubuntu kernel headers for this version (they belong to natty though I'm running maverick.... when I installed the .deb file with dpkg I had no problem at all).
Now I'd like to build said module against these headers. How can I do it?
I am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is : Quote: undefined reference to
to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem: Quote: gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`
I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.
I am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is :
Quote:
undefined reference to
to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem:
Quote:
gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`
I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.
I just installed F12 on my machine. Installation worked fine, system boots and then the trouble begins. There are many programs that fail to start, all of them have the same error-message when I start them from my terminal code...
Do you have any idea what might be wrong with my system?
I have a VPS with Ubuntu 10.04 and acces to it via putty. Besides postgres database there should be running two java program which I wrote. It works fine from command line. But I need them to start automatically at boot time.
I have some programs which I want to start up immediately when I get my computer going. Can I make Ubuntu to do it for me automatically? How? I want it to start when the computer is starting up, see.
Linux noob here with a very fresh Debian 5.04 install. Not sure if this is the correct board for this but here goes;*No* programs start in X. Terminal, System Monitor, Epiphany, Gedit, Synaptic Package Manager... They all fail to start.The programs try to start for 15 seconds after which they give up. For example, if I press the Epiphany-icon in the panel I see "Starting Epiphany We..." in the lower-left corner and the mouse cursor changes to the loading animation for 15 seconds but then after that nothing happens and the "Starting Epiphany We..."-icon disappears. I have two users (plus root of course) and the same thing happens with both accounts.
I can start the icons I have on my desktop (Computer, Home folder, Trash and Downloads) and I can Lock the screen/log off/shut down but that's about it. Oh and one more thing; sometimes when I log in everything works just fine, so this whole thing seems a bit random.
In Windows, if I have a console window open, type winmine, and press enter, Minesweeper will appear, completely separate from the cmd program. The Minesweeper instance is not tied to the command prompt in any way that I know of, with the exception of Minesweeper's parent being set to that instance of the command prompt. It's different in Linux, however.
In Linux, if I have a console window open, type emacs and press enter, Emacs will open, but it seems tied to the command line. Specifically, it appears that I can't use the command line anymore until that instance of Emacs is closed. Is there a way to replicate the Windows behavior in Linux?
This worked, but now I want to remove some start up programs using the command line. Can someone point me in the right direction to what I need to do for this?
I'm assuming that default start up programs are not links in the ~/.kde/Autostart folder because when I run:
Code: ls -a ~/.kde/Autostart I only find the files that I have set to start up.
Why wouldnt someone just add programs to ubuntus startup instead of using a script?Im configuring deluge and to have the web ui and daemon run at boot I added them to startup and they are working fine.
I am setting up a streaming audio server. I would like to have Darkice and sc_serv (Shoutcast server) start automagically on boot.
I have set Xubuntu (10.04) to auto login
Both Darkice and sc_serv are command line apps and I would like them to each run in their own terminal window so I can monitor any status messages they produce. For instance sc_serv displays connections disconnections with time connected, and current number of listeners, and I want to see that.
One important note: sc_serv must be up and running before Darkice can be started.
I am running Debian 5.0 (Lenny). I am trying to get Wordpress 2.9.2 to work with Sqlite3. I hear Sqlite is a better database server than MySql because it is lighter on resources and is much smaller. I am very new to Sqlite3, however, so I'm not totally sure what to do here. In my wp-config.php file (the Wordpress configuration file), I've set the database name and user name, and such. Now, I think I know how to create a database, but from that point forward, I'm lost. How do I add the password for Wordpress to access the database. By the way, I made a regular Unix user, called sqlite, for all Sqlite things.
I am using fedora 10, and everything was working fine till yesterday, i was using yum and my system is updated with yum update as well. Then yesterday i build new kernel from source 2.6.32, and today i boot with that kernel. Now my yum doesnt work.
Yesterday, I think I did something stupid: I removed kernel-headers, gcc, glibc-devel and glibc-headers. My box is a CentOS 5.4 webserver (it has loads of packages installed, but that was done through Virtualmin config, so it's quite coherent all in all). The thing is that now I need to reinstall at least the headers and glibc, but hey! this is what I get :
Some of my programs don't start or don't work! For example, when I click on MultiGet, don't starts or when I want open a file with blebder, it does crash and when I want to save a file, it does crash! I use f14 and my laptop is inspiron-dell 1564 with intel VGA and the lastest updates are installed on my laptop.
I'm a Ubuntu Desktop newbie, and I wiped XP Media Center off my old HP Pavillion Dv8000 last night to install 10.04 LTS. With very little tweaking, I got everything to run right including wireless, but now I notice that I can't run any new (post-install) programs that I install through Ubuntu Software Center. In fact, I haven't tried installing any other way, but all software that was part of the default installation works fine, but these programs won't run:VLC Media PlayerSkypeStarsWhen I click on the programs to run them, the other apps slow or freeze for 30-45 seconds as if the computer is contemplating starting them, and then nothing. No errors, no shell or blank window - nothing. They just don't run.I only created one user account at O/S install and as far as I can tell is the SU, so I can't see it being a permissions issue.
am running 10.10 64bit and I am wanting to change a few wayssome programs start up on boot, they are as follows:1. make NetworkManager not load onboot and require me to manually start it in the command line2. make bluetooth not start on boot and allow to manually start it from the command line3. make networking not boot on startand start manually from command line I have been trying to search on google but most of thereads I find are about removing things completely and the few that werent did not work for what I want to do.
since it started i cannot launch software-center, vlc, emesene... they all stopped working... i checked the logs of synaptic to see if i removed a python package and i didn't. i tried selecting all python packages for reinstall, and it didn't help! i really don't want to reinstall ubuntu.