Build error:undefined reference to ...

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi guys, im new to programing and psoc. On my project i cant acess to other funcions in my header files.

i have my main:

#include <project.h>

#include <./ble.h>

void InitSystem(){

   

    CyGlobalIntEnable; /* Enable global interrupts. */

    CyBle_Start(eventHandler);

}

int main(void)

{

    InitSystem();

}

   

and my ble.h

#ifndef _BLE_H_

#define _BLE_H_

   

#include <project.h>

//Funções

void eventHandler(uint32 event, void * eventParam);

#endif

im not able to acess to any funcion in ble.h and i cant understand why

0 Likes
4 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Can you please provide us with your project.Which creator version are you using.

0 Likes
Anonymous
Not applicable

I have also same problem,

i am using PSoC creator 4.2

0 Likes
Anonymous
Not applicable

do you name your .c as ble.c?

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Using

#include <./ble.h>

is strange - it should be just

#include <ble.h>

because the compiler is managing the search path.

Then I think it should be

CyBle_Start(&eventHandler);

- you need to supply the address of the function.

Can you tell us the actual error message you are seeing?

0 Likes