Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 10:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Trouble with linking CodeBlocks C++

Discussion on Trouble with linking CodeBlocks C++ within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1

 
jackpotsvr's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 328
Received Thanks: 43
Trouble with linking CodeBlocks C++

Hello! I got some linking problems and I can't figure what to do to fix them, so I am asking for help.

I want to use sqlite for learning purposes. I downloaded the sqlite-amalgamation from sqlite.org, and made a static library from a dll file and a dev file, but I keep havaing problems with linking before I can actually code..

I am using codeblocks IDE, and using GNU GCC Compiler. I copied the sqlite3.h to the folder with all the header files, and the static library to the folder with all static librarys. I linked the library trough build options as well.
There error I am getting when I am building.

Quote:

-------------- Build: Debug in test03 ---------------

Linking console executable: bin\Debug\test03.exe
C:\Program Files (x86)\CodeBlocks\MinGW\lib\libsqlite3.a: file not recognized: File truncated
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
I can post my code but actually I doubt its usefull..
PHP Code:
#include <iostream>
#include <sqlite3.h>

using namespace std;

int main()
{
    const 
char DBfile "my.db";
    
sqlite3 *database;
    
sqlite3_open(DBfile, &database);

    return 
0;


Anyone got an idea? Help is being appreciated!
jackpotsvr is offline  
Reply


Similar Threads Similar Threads
linking hammer
12/24/2011 - Shaiya Private Server - 1 Replies
does anybody know how to make a linking hammer 100 % chance of success or someway i can get 100 % chance of success without linking in the database? thanks all
[CodeBlocks] Build Fehler
08/20/2011 - General Coding - 5 Replies
Hey , ich bin von Microsoft Visual C++ auf CodeBlocks umgestiegen mit Microsoft Visual C++ habe ich sonst nur Dll's gemacht, das hatte ich jetzt auch mit CodeBlocks vor. Wenn ich es starte kommt folgender Fehler: Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... Ich habe es probiert so zu lösen ,
About linking 2 or more programs
01/06/2011 - CO2 Private Server - 10 Replies
Heya! (Yes its me again!) I wanna ask somethin important now... I maked an Auth Server and settled the game server to game function only (it doesn't handle login anymore), and i want to make a new one that will handle monsters and npcs.... (this one will be internal... only to send and receive infos about npcs / mobs) hmmm this will redduce the lag into the server or won't change so much??? should i keep only the auth/game server's only.... few questions to make instead... if...
Lineage One - LinKing BOT
03/16/2010 - General Coding - 1 Replies
Hi there, I'm looking for a bypass for this bot used on Lineage 1. This is the download url English version V2.46d - Linking Which is hosted on it's official site Linking - Power tools for lineage Thanks a lot for your help in advance. -- You guys think TCPTunnel or anything like that would work with it? Not sure how to find out the ips and stuff to make it work properly. --
Linking accounts
07/16/2009 - EO PServer Hosting - 4 Replies
is there any way to link my existing accounts to my existing users? after i switched databases people are logging into characters with different accounts lol its a mess..any help would be appreciated



All times are GMT +1. The time now is 10:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.