Richard Heathfield wrote:
> juned2285@[EMAIL PROTECTED]
said:
>
>> On Mar 14, 1:22 pm, Richard Heathfield <r...@[EMAIL PROTECTED]
> wrote:
>>> juned2...@[EMAIL PROTECTED]
said:
>>>
>>>> while writing these codes, i face an error
>>>> struct st
>>>> {
>>>> char name[30];
>>>> floatper;
>>>> }s[5];
>>>
>>>> when iusethisstructure, compiler gives the linking error.
>>>> so how can i remove this error.
>>>
>>> There's nothing wrong with the code you've posted. Your error is
>>> not in the code that you have shown, but in the code that you have
>>> not shown.
>>>
>> i am using the turboc compiler.
>
> That's nice. Just so long as you're using a compiler for either C or
> C++, that'll be fine.
>
>> compiler si unable to link the
>> floating field and i am not getting how to link this field.
>
> There's nothing wrong with the code you've posted. Your error is not
> in the code that you have shown, but in the code that you have not
> shown.
Show the actual code you are trying to compile. Does this compile for
you?
struct st
{
char name[30];
float per;
}s[5];
int main()
{
}
--
Jim Langston
tazmaster@[EMAIL PROTECTED]


|