your code is working
I have to compare it with my and I let you know.
Can you check problem with set_c.doj in LDF, (see attachment)?
After some VDS update it appeared in all my codes.
What is included in set_c.doj?
If you have a C++ project you will not see the red X next to set_c.doj. It only occurs in C projects.
One of the symbols that is defined in set_c.doj is "___ctor_NULL_marker" which is used to mark the end of the list of constructors that need to be linked into your project when using C++. In a C project this variable is not needed and not mapped by the linker. The red X is the way the linker highlights that ___ctor_NULL_marker is not being mapped into your project.
Previous updates to VisualDSP++ didn't have this problem. The ldf guarded the mapping of the section that contains the C++ constructors so they weren't in the LDF for normal linking of C programs.
__ctors = .; /* points to the start of the section */
INPUT_SECTIONS( $OBJECTS(seg_ctdm) $LIBRARIES(seg_ctdm))
INPUT_SECTIONS( $OBJECTS(seg_ctdml) $LIBRARIES(seg_ctdml))
} > mem_ctdm
If you are having your own copy of the LDF file you could do the same thing to remove the X from the expert linker.
I am braching this question to a different thread and moving it to the tools community hoping that someone here might help you regarding your latest question.
Is your concern the 'red X' showing in the Expert Linker window? If so, as a general rule I would recommend that as long as the Linker does not emit any errors or warnings (ensure that you check the generated linker_log.xml file), then there is no cause for concern.
It is likely that the object shown with a red X contains library code that is only included in very specific circumstances, is not required in your code, but the Expert Linker is 'concerned' something may have been missed.
As I say, it is almost certainly nothing to worry about, however if you would like us to take a closer look, could you please contact private support, so that we can take a look at your project, reproduce the issue, and determine whether there is any cause for concern.
Thank you Craig,
my linker_log.xml file is clear, so I hope it is OK,
I asked due to fact that this "red X" appeared after some VisualDSP update
and I would like to know what is in "set_c.doj" library.
Thank you again
the set_c.doj object in the libc36x.dlb library is generated from the "...\213xx\lib\set_c.asm". This file contains the functions to initialize the C runtime environment.
While undesirable, the red 'X' can be ignored if there are no errors reported by the linker. Let me know if you do encounter any issues, though.
I let you know.
Just for your information
If you create new empty project in VDSP
mentioned problem with set_c.doj is appeared automatically
So, I think it is problem in VisualDSP.
I have logged this in our bug tracking database, and will let you know when there is any update. For now, as we discussed earlier, in this particular case you can ignore the Expert Linker warning, as long as the Linker does not issue any warnings/errors.
I have just wanted to know if it is problem.
Now, it is clear.
Retrieving data ...