Author Topic: error 148:variable " xxx" has already been initialized  (Read 9899 times)

0 Members and 1 Guest are viewing this topic.

Offline dizgahTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
error 148:variable " xxx" has already been initialized
« on: November 14, 2014, 04:08:17 pm »
hi every body
im trying to port a avr c library to  a stm32f103 arm cortex mcu,but i have this error(error 148:variable " xxx" has already been initialized)
im bewildered what it say ?
tnks
Happiness can be found, even in the darkest of times, if one only remembers to turn on the light.
Albus Dumbledore
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: error 148:variable " xxx" has already been initialized
« Reply #1 on: November 14, 2014, 04:13:34 pm »
Quote
im bewildered

You are not alone - we all are bewildered too, :)
================================
https://dannyelectronics.wordpress.com/
 

Offline dizgahTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
Re: error 148:variable " xxx" has already been initialized
« Reply #2 on: November 14, 2014, 05:02:05 pm »
Quote
im bewildered

You are not alone - we all are bewildered too, :)
???
-----------------
im try it on keil & iar (lite free versions) & all of them show same error
its a osama glcd library for avr im trying to port
i attached keil project (it have some other warning too , but at first im trying to solve errors step by step )
thanks a lot
http://wikisend.com/download/150238/GLCD.rar
Happiness can be found, even in the darkest of times, if one only remembers to turn on the light.
Albus Dumbledore
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: error 148:variable " xxx" has already been initialized
« Reply #3 on: November 14, 2014, 05:09:15 pm »
Having looked at your code, I would say that you stand very little chance of getting it to work.

Reading up on a good C book would be helpful to you.
================================
https://dannyelectronics.wordpress.com/
 

Offline dizgahTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
Re: error 148:variable " xxx" has already been initialized
« Reply #4 on: November 14, 2014, 05:33:53 pm »

--------
i find reason
i include font.h twice
& can do this with #ifndef or with ereasing one of the includes
then i will edite title & post my other problem related with porting this lib to keil stm32f103
thanks
Happiness can be found, even in the darkest of times, if one only remembers to turn on the light.
Albus Dumbledore
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf