The Coding Experience
~ Welcome to the TCE Forum !!! ~
We are just a little piece of the the web forums now, but, by the time, we manage to expand and be known in the web.
But, its only possible with YOUR HELP. So, join us and be a member of TCE !
Here you'll find a lot of things, and with your help and knowledge, we'll have more things.
Search
Display results as :
Advanced Search
Top posting users this week
[DJANGO - .PY] Trouble when trying to run manage.py
Mon Oct 09, 2017 9:42 amJoao
I was trying to run manage.py runserver, but with no success, anyone has any solution ???
[DJANGO - .PY] HOW TO FIX THE "STARTPROJECT" SYNTAX ERROR
Fri Oct 06, 2017 1:13 pmRenan Araújo
Its very common to run the command
Code:
django-admin.py startproject xxx
*xxx stands for the name of your project

But when you get an error and you dont know how to fix, an error saying that "startproject" is an invalid syntax.
So, its simple to solve, you just need to copy the code below, AND SAVE IT AS anything.BAT, MUST PUT .BAT in the end.
Code:
@echo off
@echo Made by TCE Forum ! ! !
@echo  …
[.PY - TKINTER] Mini guessing game using an interface
Thu Oct 05, 2017 3:05 pmRenan Araújo
Code:
from tkinter import *
class MyApp(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pergunta = Label(self, text='Brazil was discovered in:', fg='red')
        self.pergunta.pack()
        self.botao1 = Button(self, text='A:\n1490', background='green',
                 …
[PYTHON] - Simple loadin using for
Thu Oct 05, 2017 9:57 amJoao
As i am newbie in coding, i would like to share something, isnt much thing, simply a loading, very simple.

Code:
Loading = ['L','O','A','D','I','N','G']
    for L in Loading:
        time.sleep(1)
        print(L)
    print('DONE !')
Registration and Login System with PHP and MySQL
Thu Oct 05, 2017 9:51 amJoao
*CREDITS: codexworld <3

Database Table Creation

A table is needed to store the user details in the database. The following SQL creates a users table with some required columns.

Code:
CREATE TABLE `users` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `first_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
 `last_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
 …
Django - Python
Tue Oct 03, 2017 3:10 pmRenan Araújo
As many people think, web development is not that hard, by learning with the right guides ( just talking about learning by yourself on the internet ), you won't have troubles.
A good way to learn is by reading this PDF ( <- click here )
[PYTHON] Change the ID with a new user
Wed Oct 04, 2017 2:08 pmJoao
A simple code ( very simple Mad ) to change the actual ID, to the next, when a new user enter, here's the code:

Code:
 """
CHANGING ACTUAL ID """
ID_Actual = 0
while 1:
    User_Actual = input('Type the username:  ')
    User_ID_Actual = ID_Actual
    print('USER: {}'.format(User_Actual))
    print('ID: …

Share
View previous topicGo downView next topic
avatar
:
:
Posts : 5
Points : 113
Reputation : 1
Join date : 2017-10-04
Age : 21
Location : Albania
View user profile

Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 3:30 pm
I was trying to run a program, but I got errors in directories ( that's what I think )
here's what I receive:
Code:
gcc: error: Usage:: No such file or directory
gcc: error: [OPTIONS]: No such file or directory
gcc: error: Options:: No such file or directory
gcc: error: [-I/usr/include/mysql: No such file or directory
gcc: error: [-I/usr/include/mysql: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: [/usr/lib/mysql/plugin]: No such file or directory
gcc: error: [/var/run/mysqld/mysqld.sock]: No such file or directory
gcc: error: [0]: No such file or directory
gcc: error: [5.7.13]: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: VAR: No such file or directory
gcc: error: is: No such file or directory
gcc: error: one: No such file or directory
gcc: error: of:: No such file or directory
gcc: error: pkgincludedir: No such file or directory
gcc: error: [/usr/include/mysql]: No such file or directory
gcc: error: pkglibdir: No such file or directory
gcc: error: [/usr/lib/x86_64-linux-gnu]: No such file or directory
gcc: error: plugindir: No such file or directory
gcc: error: [/usr/lib/mysql/plugin]: No such file or directory
gcc: error: unrecognized command line option ‘--cflags’
gcc: error: unrecognized command line option ‘-fno-omit-frame-pointer]’
gcc: error: unrecognized command line option ‘--cxxflags’
gcc: error: unrecognized command line option ‘-fno-omit-frame-pointer]’
gcc: error: unrecognized command line option ‘--libs’
gcc: error: unrecognized command line option ‘--libs_r’
gcc: error: unrecognized command line option ‘--plugindir’
gcc: error: unrecognized command line option ‘--socket’
gcc: error: unrecognized command line option ‘--port’
gcc: error: unrecognized command line option ‘--libmysqld-libs’
gcc: error: unrecognized command line option ‘--variable=VAR’
avatar
:
:
Posts : 16
Points : 185
Reputation : 15
Join date : 2017-10-03
Location : Brazil
View user profilehttp://thecodingexperience.tk

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 3:51 pm
White_Shroud wrote:I was trying to run a program, but I got errors in directories ( that's what I think )
here's what I receive:
Code:
gcc: error: Usage:: No such file or directory
gcc: error: [OPTIONS]: No such file or directory
gcc: error: Options:: No such file or directory
gcc: error: [-I/usr/include/mysql: No such file or directory
gcc: error: [-I/usr/include/mysql: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: [/usr/lib/mysql/plugin]: No such file or directory
gcc: error: [/var/run/mysqld/mysqld.sock]: No such file or directory
gcc: error: [0]: No such file or directory
gcc: error: [5.7.13]: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: VAR: No such file or directory
gcc: error: is: No such file or directory
gcc: error: one: No such file or directory
gcc: error: of:: No such file or directory
gcc: error: pkgincludedir: No such file or directory
gcc: error: [/usr/include/mysql]: No such file or directory
gcc: error: pkglibdir: No such file or directory
gcc: error: [/usr/lib/x86_64-linux-gnu]: No such file or directory
gcc: error: plugindir: No such file or directory
gcc: error: [/usr/lib/mysql/plugin]: No such file or directory
gcc: error: unrecognized command line option ‘--cflags’
gcc: error: unrecognized command line option ‘-fno-omit-frame-pointer]’
gcc: error: unrecognized command line option ‘--cxxflags’
gcc: error: unrecognized command line option ‘-fno-omit-frame-pointer]’
gcc: error: unrecognized command line option ‘--libs’
gcc: error: unrecognized command line option ‘--libs_r’
gcc: error: unrecognized command line option ‘--plugindir’
gcc: error: unrecognized command line option ‘--socket’
gcc: error: unrecognized command line option ‘--port’
gcc: error: unrecognized command line option ‘--libmysqld-libs’
gcc: error: unrecognized command line option ‘--variable=VAR’
Welcome to the forum !!!

Well, have you installed all the libs ?
and I need to know the OS you are using, its Windows ?
avatar
:
:
Posts : 5
Points : 113
Reputation : 1
Join date : 2017-10-04
Age : 21
Location : Albania
View user profile

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 3:53 pm
Renan Araújo wrote:
White_Shroud wrote:I was trying to run a program, but I got errors in directories ( that's what I think )
here's what I receive:
Code:
gcc: error: Usage:: No such file or directory
gcc: error: [OPTIONS]: No such file or directory
gcc: error: Options:: No such file or directory
gcc: error: [-I/usr/include/mysql: No such file or directory
gcc: error: [-I/usr/include/mysql: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: [/usr/lib/mysql/plugin]: No such file or directory
gcc: error: [/var/run/mysqld/mysqld.sock]: No such file or directory
gcc: error: [0]: No such file or directory
gcc: error: [5.7.13]: No such file or directory
gcc: error: [-L/usr/lib/x86_64-linux-gnu: No such file or directory
gcc: error: VAR: No such file or directory
gcc: error: is: No such file or directory
gcc: error: one: No such file or directory
gcc: error: of:: No such file or directory
gcc: error: pkgincludedir: No such file or directory
gcc: error: [/usr/include/mysql]: No such file or directory
gcc: error: pkglibdir: No such file or directory
gcc: error: [/usr/lib/x86_64-linux-gnu]: No such file or directory
gcc: error: plugindir: No such file or directory
gcc: error: [/usr/lib/mysql/plugin]: No such file or directory
gcc: error: unrecognized command line option ‘--cflags’
gcc: error: unrecognized command line option ‘-fno-omit-frame-pointer]’
gcc: error: unrecognized command line option ‘--cxxflags’
gcc: error: unrecognized command line option ‘-fno-omit-frame-pointer]’
gcc: error: unrecognized command line option ‘--libs’
gcc: error: unrecognized command line option ‘--libs_r’
gcc: error: unrecognized command line option ‘--plugindir’
gcc: error: unrecognized command line option ‘--socket’
gcc: error: unrecognized command line option ‘--port’
gcc: error: unrecognized command line option ‘--libmysqld-libs’
gcc: error: unrecognized command line option ‘--variable=VAR’
Welcome to the forum !!!

Well, have you installed all the libs ?
and I need to know the OS you are using, its Windows ?

I am using Ubuntu
avatar
:
:
Posts : 16
Points : 185
Reputation : 15
Join date : 2017-10-03
Location : Brazil
View user profilehttp://thecodingexperience.tk

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 3:54 pm
So, just type: apt-get install libmysqlclient-dev
And see if it help you
avatar
:
:
Posts : 5
Points : 113
Reputation : 1
Join date : 2017-10-04
Age : 21
Location : Albania
View user profile

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 3:56 pm
Renan Araújo wrote:So, just type: apt-get install libmysqlclient-dev
And see if it help you

same thing here, it did not help Sad
avatar
:
:
Posts : 12
Points : 130
Reputation : 4
Join date : 2017-10-03
View user profile

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 4:11 pm
Message reputation : 100% (1 vote)
@White_Shroud,

the problem seems to be due to an error on the command line, check if you typed it all right:

Code:
~$gcc teste.c -o teste $(mysql_config --libs)

~$~sudo apt-get install mysql-server mysql-client

and after, as Renan said:
apt-get install libmysqlclient-dev
avatar
:
:
Posts : 5
Points : 113
Reputation : 1
Join date : 2017-10-04
Age : 21
Location : Albania
View user profile

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 4:15 pm
Joao wrote:@White_Shroud,

the problem seems to be due to an error on the command line, check if you typed it all right:

Code:
~$gcc test.c -o test $(mysql_config --libs)

~$~sudo apt-get install mysql-server mysql-client

and after, as Renan said:
apt-get install libmysqlclient-dev

AAAAAAAAAAAAAAAH man, thanks a lot !!!!!!!!!!
I typed -libs
thanks again dude ! Thumbs UP
avatar
:
:
Posts : 16
Points : 185
Reputation : 15
Join date : 2017-10-03
Location : Brazil
View user profilehttp://thecodingexperience.tk

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

on Wed Oct 04, 2017 4:19 pm
As the problem was solved, topic will be locked, reopened if the author wish
Sponsored content

Re: Why am I having troubles when trying to use MySQL with C - (Locked)

View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum