Mysql Connector/C error

Asked

Viewed 57 times

2

I’m having a C problem, while trying to include Mysql bookstore gave some strange errors that I didn’t find anywhere.

I downloaded the bookstore on official website for Win32-x86 (ZIP) and installed on Mingw (32-bit, latest version with all components).

I have already made the Linker settings for the library and for Mingw, compiled with GNU GCC Compiler. I use Codeblocks.

Build log:

-------------- Build: Debug in MySQL connector (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall --- include/libmysql.def  Thu Jan 13 07:46:56 2005 -g  -c "C:\Users\User\Desktop\C scripts\MySQL connector\main.c" -o obj\Debug\main.o
mingw32-gcc.exe: error: include/libmysql.def: No such file or directory
mingw32-gcc.exe: error: Thu: No such file or directory
mingw32-gcc.exe: error: Jan: No such file or directory
mingw32-gcc.exe: error: 13: No such file or directory
mingw32-gcc.exe: error: 07:46:56: Invalid argument
mingw32-gcc.exe: error: 2005: No such file or directory
mingw32-gcc.exe: error: unrecognized command line option '---'
Process terminated with status 1 (0 minute(s), 0 second(s))
7 error(s), 0 warning(s) (0 minute(s), 0 second(s))
  • Did you get this command line in your hand? Or was it from some build script? Because the error message that GCC points to is solely and exclusively related to the arguments.

  • Was from a script.

1 answer

-1

Problem solved. I removed the command lines in Project -> Build Options -> Compiler Settings -> Other Compiler options.

  • What option? Put it here so that someone else who has the same problem as yours understands your answer and is able to replicate the solution

Browser other questions tagged

You are not signed in. Login or sign up in order to post.