Keil Logo

compiler compile files twice

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
Lukas G
Posted
8-Feb-2019 10:51 GMT
Toolset
ARM
New! compiler compile files twice

hi,
wierd problem, when compiling files one file is compiled twice.
which throw later linker error becouse there are two indentical files.

build output:

*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'xxxxxxxxxxx'

compiling uart.c...
compiling nrf24.c...
compiling tm_stm32f4_nrf24l01.c...
compiling misc.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_bkp.c...
....
....
....
assembling startup_stm32f10x_md.s...
compiling core_cm3.c...
compiling system_stm32f10x.c...
compiling nrf24.c...
linking...
.\Objects\kontroler-pilot.axf: Error: L6200E: Symbol dataOut multiply defined (by nrf24_1.o and nrf24.o).
.\Objects\kontroler-pilot.axf: Error: L6200E: Symbol nrf24SendData multiply defined (by nrf24_1.o and nrf24.o).

nrf24.c is compiled twice , firstly at the beginnig and secondly at the end
why is this happening?

Author
Lukas G
Posted
8-Feb-2019 11:14 GMT
Toolset
ARM
New! RE: compiler compile files twice

problem solved, it turns out , that it was doubled file. Second one was hidden in startup folder. the strange thing is that windows explororer do not saw this hidden file, like it existed only in project but not on disk.

Author
Andrew Neil
Posted
8-Feb-2019 18:15 GMT
Toolset
None
New! RE: Second one was hidden in startup folder

"strange thing is that windows explororer do not saw this hidden file"

The "folders" within the uVision Project are not real folders in the file system

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.