Hi all,
I am new to the forum and have just started development for the PSP. I am using devkitpro to develop for the PSP.
I have created a function and if I call that function more than once, when trying to compile I get the error:
.ent or .aent not in text section
.end not in text section
operation combines symbols in different segments
an example of a function is:
int testF(int val)
{
return val*2;
}
if I call the above function such as:
int tval=testF();
it works but if I call it twice:
int tval=testF();
int tval2=testF();
and the code doesn't compile.
Sorry if the answer exists already, I tried searching but didn't find anything.
Can't use a function more than once
Re: Can't use a function more than once
Your function requires an int value. So you have to change it from:yimtaka wrote:Hi all,
I am new to the forum and have just started development for the PSP. I am using devkitpro to develop for the PSP.
I have created a function and if I call that function more than once, when trying to compile I get the error:
.ent or .aent not in text section
.end not in text section
operation combines symbols in different segments
an example of a function is:
int testF(int val)
{
return val*2;
}
if I call the above function such as:
int tval=testF();
it works but if I call it twice:
int tval=testF();
int tval2=testF();
and the code doesn't compile.
Sorry if the answer exists already, I tried searching but didn't find anything.
to...int tval=testF();
int tval2=testF();
where X is a number.int tval=testF(x);
int tval2=testF(x);
Re: Can't use a function more than once
Slash wrote:Your function requires an int value. So you have to change it from:yimtaka wrote:Hi all,
I am new to the forum and have just started development for the PSP. I am using devkitpro to develop for the PSP.
I have created a function and if I call that function more than once, when trying to compile I get the error:
.ent or .aent not in text section
.end not in text section
operation combines symbols in different segments
an example of a function is:
int testF(int val)
{
return val*2;
}
if I call the above function such as:
int tval=testF();
it works but if I call it twice:
int tval=testF();
int tval2=testF();
and the code doesn't compile.
Sorry if the answer exists already, I tried searching but didn't find anything.
to...int tval=testF();
int tval2=testF();
where X is a number.int tval=testF(x);
int tval2=testF(x);
yes you're right, it's my mistake typing the example but even that produces the same error.
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm