Author Topic: ASlink-Warning-Conflicting sdcc options?  (Read 12193 times)

Offline mandashiva628

  • Single posting newcomer
  • *
  • Posts: 3
ASlink-Warning-Conflicting sdcc options?
« on: April 26, 2009, 09:03:25 pm »
hi I am new user to CB.

In our application we are using SDCC compiler for MCS51 controller.
After selecting the compiler as SDCC, we set all the options for linker and search directive in CB.

Then we tried to build the project. But CB is giving error like

"ASlink-Warning-Conflicting sdcc options"
"-mmcs51 --model-large --parms-in-bank1" in module "test" and
   "-mmcs51 --model-large" in module "_startup".

The program should generate intel hex file after building project.but its not generating?
is it due to above warning?

Please help me how to avoid this warning.

Thanks & Regards
shiva

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: ASlink-Warning-Conflicting sdcc options?
« Reply #1 on: April 26, 2009, 11:56:16 pm »
Can you please tell me, why you think this problem is related to C::B ?

For me it looks like a misconfiguration.

You can turn on Full commanline logging:
change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline".

This might help to find the cause for your problems.

Offline mandashiva628

  • Single posting newcomer
  • *
  • Posts: 3
Re: ASlink-Warning-Conflicting sdcc options?
« Reply #2 on: April 29, 2009, 11:43:19 am »
Thank you very much for replying...

Now I am not getting the  "Re: ASlink-Warning-Conflicting sdcc options?" warning. I dont know how did it cleared.
After building the project it is showing following output but no where it is generating intel hex file(which I set in compiler and settings as you see in below message)

Code
-------------- Build: Debug in Test ---------------

[ 50.0%] sdcc.exe   --out-fmt-ihx --no-std-crt0 --model-large -mmcs51 --opt-code-size --opt-code-speed   -I"C:\Program Files\SDCC\include"  -c test.c -o obj\Debug\test.rel
at 1: warning 117: unknown compiler option '--no-std-crt0' ignored
[100.0%] sdcc.exe -L"C:\Program Files\SDCC\lib"  -o bin\Debug\Test.exe   --out-fmt-ihx --no-std-crt0 --model-large -mmcs51 --opt-code-size --opt-code-speed    "C:\Program Files\SDCC\lib\large\libfloat.lib" "C:\Program Files\SDCC\lib\large\libint.lib" "C:\Program Files\SDCC\lib\large\liblong.lib" "C:\Program Files\SDCC\lib\large\libsdcc.lib" "C:\Program Files\SDCC\lib\large\mcs51.lib"  obj\Debug\test.rel
at 1: warning 117: unknown compiler option '--no-std-crt0' ignored
Output size is 1.19 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings


But no where it is generating hex file.

Thanks & regards,
shiva

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: ASlink-Warning-Conflicting sdcc options?
« Reply #3 on: May 04, 2009, 06:32:56 pm »
Try this

Project -> Properties
Select Tab "Build Targets"

In section "Select Build Target Options"

Change Type to "Native"

Change output name to test.hex

I also unchecked both auto generate options and cleared execution directory

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mandashiva628

  • Single posting newcomer
  • *
  • Posts: 3
Re: ASlink-Warning-Conflicting sdcc options?
« Reply #4 on: May 04, 2009, 09:05:08 pm »
Thank you very much friends.....