bisikli
bisikli

Reputation: 19

Perfect-MySQL majorVersion:3 Undefined symbols for architecture x86_64:

I get an

ld: symbol(s) not found for architecture x86_64

error while building from terminal (swift build) (swift 4).
It points to a simple init in my code like:

let mysql = MySQL()

Two hints:

What may be the cause of this error?

Upvotes: 0

Views: 135

Answers (1)

bisikli
bisikli

Reputation: 19

I found the problem, putting this here if anyone else encounters the same problem:

I followed the example at : http://perfect.org/docs/MySQL.html and there it shows :

import MySQL

However, if change this to the following:

import PerfectMySQL

the build problem I mentioned above disappears.

I hope this helps somebody

Upvotes: 0

Related Questions