Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] help ! Eclipse error makes me crazy

Status
Not open for further replies.

anotherbrick

Full Member level 4
Joined
Jan 10, 2009
Messages
217
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
Istanbul , Turkey
Activity points
3,144
hello forum,

I am trying to compile a C project for STM32 with Eclipse

I got the following error

Code:
C:\OlimexODS\examples\STM32-E407_blink_FLASH_DENEME/main.c:156: undefined reference to `SYSCFG_ETH_MediaInterfaceConfig'

the header file is included in main.c
Code:
#include "stm32f4xx_syscfg.h"

the source file where above function is declared
Code:
stm32f4xx_syscfg.c
file is included lib\src folder

why am I getting this error ?
 

Is 'SYSCFG_ETH_MediaInterfaceConfig' defined in 'stm32f4xx_syscfg.h'?
Is the file 'stm32f4xx_syscfg.h' in the same folder as 'main.c'?
Is the file 'stm32f4xx_syscfg.c' added (not the same as included) to the project?
 

eclipseerror.jpg

hello ,

I added in the makefile 'stm32f4xx_syscfg.c' apropriately and the error was gone
( why doesnt eclipse arrange the makefile automatically ? :???: )

however this time I get following error

what is _impure_ptr and how can I get rid of it ?

as I searched google I learned that this is related to a newlib or something like that
however I couldnot find any solution in internet :-(

This build of yagarto use the following versions:
binutils: 2.20.1
gcc: 4.5.1
newlib: 1.18.0
gdb: 7.1

(13.08.2010, mifi)
-----------------------------------
In my code I include
#include <stdio.h>
#include <string.h>
 

From the ss you provided, that seems to be a C project. Have you configured Eclipse for a C project, and not for C++? What's the contents of your makefile?
 

hi
i am trying to run a java package in eclipse but I got the following error:
java.lang.NoClassDefFoundError: Main
Exception in thread "main"
please help me
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top