Unresolved Extern Name Error

General discussion on RSC-4x mikroC.
Post Reply
Author
Message
questionsandanswers
Posts: 10
Joined: 18 Jun 2006 16:34

Unresolved Extern Name Error

#1 Post by questionsandanswers » 21 Jun 2006 05:38

Hi all,

I'm trying to develop sound technology applications with Easy VR Dev. Tool. but when i try to compile c files inculding fluentchip library utilities, i get the error: Undefined extern name. I include the required header file "techlib.h" but i can not solve this problem. Can anybody hepl me pls?

thanks

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: Unresolved Extern Name Error

#2 Post by srdjan » 21 Jun 2006 16:31

Hi,
Unfortunately, Fluent chip library has been changed since our compiler release so there could be some problems (with distributed examples, not the compiler), considering that they did not maintain backward compatibility with earlier version. If you can, please, send me the code that is giving you trouble and I'll see what's the problem.

questionsandanswers
Posts: 10
Joined: 18 Jun 2006 16:34

#3 Post by questionsandanswers » 22 Jun 2006 03:51

Dear srdjan,

I've written this simple code to test the FluentChip library with MikroC:
#include<techlib.h>
#define TIMEOUT 2
uchar error;
void main()
{
_InitCollection();
error = _MakeTmpltSd(TIMEOUT,2,2);
}
Th file fc4128.mco object file is included in the project object files. The Fluentchip version I've downloaded is FC_2_0_10. fc4128.mco file is from FC_2_0_10\lib folder. The paths of the project are:

d:\sensory\fc_2_0_10\lib

and the include path is:

d:\sensory\fc_2_0_10\include.

When I build the project i get the error:

"Undefined extern name 'ARMS_LENGHT' in module startup"
"Undefined extern name 'BAUD_COUNT' in module startup"
......

and the same error with different extern names. I wish u can show a way to solve this problem.

Thanks...

QandA

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

#4 Post by srdjan » 22 Jun 2006 13:45

Hi,
Here are the appropriate project settings for your project.
For further information on the included modules you can refer to FluentChip_Reference.chm in \\Sensory\FC2_0_10\docs folder.

Image

questionsandanswers
Posts: 10
Joined: 18 Jun 2006 16:34

#5 Post by questionsandanswers » 22 Jun 2006 17:19

Dera Srdjan,

Thank you very musch for your information..

QandA

ivanaom
Posts: 4
Joined: 27 Jun 2006 01:13
Location: Miami, FL, USA

Unresolved Extern Name Error

#6 Post by ivanaom » 27 Jun 2006 03:18

I have a related issue to this posting, any help is appreciated.

I am trying to run the project sdf from the csamples folder and I am getting the following error:
"Undefined extern name 'SNDTBL_SD_PATGEN' in module 'SDF'

The line of code where the error occurs is:
// Speech table definitions
far cdata *sound_table = &SNDTBL_SD_PATGEN;

It seems like there are some external parameters that need to be defined with an address and the MicroC Compiler does not define them. How and where is this table defined? How do I access this table?

I tried setting a constant memory address for SNDTBL_SD_PATGEN (0x96) and it will compile and create the hex file, however, there is no sound. Please help.

Thanks,
Ivan

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: Unresolved Extern Name Error

#7 Post by srdjan » 28 Jun 2006 10:27

Hi Ivanaom,
Here is the solution to your problem.

Image

ivanaom
Posts: 4
Joined: 27 Jun 2006 01:13
Location: Miami, FL, USA

#8 Post by ivanaom » 28 Jun 2006 16:58

Thank you. It worked!

Jimmy
Posts: 1
Joined: 24 Jul 2006 07:56

#9 Post by Jimmy » 24 Jul 2006 08:14

Hello,

Here is my code:

#include <techlib.h>
void main(void){
_SysBeep(50);
}

I have the same "undefined extern name '_SysBeep' in module" error despite I have included all the paths you mentionned in the previous posts.
C:\Sensory\FC2_0_11\include\
C:\Sensory\FC2_0_11\source\memory\24xxx\
C:\Sensory\FC2_0_11\lib\
C:\Sensory\FC2_0_11\source\

and
C:\Sensory\FC2_0_11\include\
C:\Sensory\FC2_0_11\source\memory\24xxx\

I have tried with both 1.0.0.7 and 2.0 releases of mikroC.


Do you have any idea of what is going on?
Thanks in advance for your help

Jimmy

Post Reply

Return to “RSC-4x mikroC General”