473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PC-Lint: undeclared funtion

Hi everybody!

I'm using for the first time PC-Lint.

I'm analysing my C program for Microchip PIC18F
microcontroller.

In particualr I have a problem with library
functions like "memcpy" or "ltoa".

I've included <string.hand <stdlib.hin my
files, and I've added their path in my lin.bat file.

But it seems that PC-lint is unable to recognise
them, since I receive the following message

(void)memcpy((void *)&FailureBuffer.date,
(const void *)&g_CurrentTime, sizeof(timestamp_t));
...\source files\app_check.c 292 Info 718: Symbol
'memcpy' undeclared, assumed
to return int
...\source files\app_check.c 292 Info 746: call
to function 'memcpy()' not
made in the presence of a prototype

and

Warning 526: Symbol 'memcpy()' (line 292, file
...\source files\app_check.c) not
defined
...\source files\app_check.c 292 Info 830:
Location cited in prior message
Warning 628: no argument information provided for
function 'memcpy()' (line
292, file ..\source files\app_check.c)
...\source files\app_check.c 292 Info 830:
Location cited in prior message
What can I do?
Thanks,
Max
Jun 27 '08 #1
4 10781
"suppamax" <ma************@gmail.comwrote in message
news:ff**********************************@f63g2000 hsf.googlegroups.com...
Hi everybody!

I'm using for the first time PC-Lint.

I'm analysing my C program for Microchip PIC18F
microcontroller.

In particualr I have a problem with library
functions like "memcpy" or "ltoa".
The topic here is only the C language, not specific
tools. However, see:

http://www.gimpel.com/html/support.htm

-Mike
Jun 27 '08 #2
On Jun 19, 7:02*am, suppamax <max.giacome...@gmail.comwrote:
Hi everybody!

I'm using for the first time PC-Lint.

I'm analysing my C program for Microchip PIC18F
microcontroller.

In particualr I have a problem with library
functions like "memcpy" or "ltoa".

I've included <string.hand <stdlib.hin my
files, and I've added their path in my lin.bat file.

But it seems that PC-lint is unable to recognise
them, since I receive the following message

* * (void)memcpy((void *)&FailureBuffer.date,
(const void *)&g_CurrentTime, sizeof(timestamp_t));
..\source files\app_check.c *292 *Info 718: Symbol
'memcpy' undeclared, assumed
* * to return int
..\source files\app_check.c *292 *Info 746: call
to function 'memcpy()' not
* * made in the presence of a prototype

and

Warning 526: Symbol 'memcpy()' (line 292, file
..\source files\app_check.c) not
* * defined
..\source files\app_check.c *292 *Info 830:
Location cited in prior message
Warning 628: no argument information provided for
function 'memcpy()' (line
* * 292, file ..\source files\app_check.c)
..\source files\app_check.c *292 *Info 830:
Location cited in prior message

What can I do?
<ot>
Define the path variable so that pc-lint can find the headers.
</ot>

It's in the documentation.
Jun 27 '08 #3
On Thu, 19 Jun 2008 07:02:00 -0700 (PDT), suppamax
<ma************@gmail.comwrote:
>Hi everybody!

I'm using for the first time PC-Lint.

I'm analysing my C program for Microchip PIC18F
microcontroller.

In particualr I have a problem with library
functions like "memcpy" or "ltoa".

I've included <string.hand <stdlib.hin my
files, and I've added their path in my lin.bat file.

But it seems that PC-lint is unable to recognise
them, since I receive the following message

(void)memcpy((void *)&FailureBuffer.date,
(const void *)&g_CurrentTime, sizeof(timestamp_t));
Others have addressed the lint problem. But why, if you have a
prototype in scope, are you casting the arguments to memcpy? It
cannot help and my even camouflage undefined behavior.
Remove del for email
Jun 27 '08 #4
In message
<ff**********************************@f63g2000hsf. googlegroups.com>,
suppamax <ma************@gmail.comwrites
>Hi everybody!

I'm using for the first time PC-Lint.

I'm analysing my C program for Microchip PIC18F
microcontroller.

In particualr I have a problem with library
functions like "memcpy" or "ltoa".
>
What can I do?
Contact Gimpel support?
Ask on the forum on the Gimpel web site?

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
1
by: Jim Richards | last post by:
Hello all. I have just built another PC (New PC)and have it connected to my Original PC via a LAN. I have my SQL Server 2000 installed on the Original PC. Both PCs use WinXP Pro OS. I believe I now...
5
by: | last post by:
I created, on my PC, a web application that connects to an Oracle DB; it basically has three buttons and several forms. Now I want to try it out on another PC that does not have .Net. I copied...
5
by: Oliver Huppert | last post by:
Hi all, can someone tell me what I need to develop applications for PPC2003 with C#? I have read several meanings about this topic. Do I need Visual Studio .NET or is Visual C# .NET Standard...
8
by: Krishnan Margabandhu | last post by:
I'm writing a Pocket PC app that will run when a device is first powered on. I want this program to get some data from the user and invoke a CAB file to install a software on the device. How do I...
2
by: Deepa K | last post by:
Hi, In my PC, eth0 is not up because of IP address clash (another PC is using the same IP address). I tried to execute a file which has set of insert commands. After executing the file, when I go...
1
by: Gal Steinitz | last post by:
What is the correct way to set up a two PC development environment where one PC (the main PC) runs IIS and Visual Studio 2005, and the 2nd PC runs SQL Server 2000 ? We ran into significant...
2
by: =?Utf-8?B?bWFib25k?= | last post by:
Hi don't know if this is the best forum or if my request is possible...hope someone out there can suggest a pointer for me. I want to to be able to send a keyboard keystroke (specifically the...
20
by: Joel Teichroeb | last post by:
In trunk of the svn there is a folder called PCbuild. Now lets say that I am running linux on my Personal Computer and want to build python. I go into the PCbuild directory, but wait. This is for...
5
by: Terry Metcalfe | last post by:
I have an Asus A696 pocket PC. I have written a small test program in VB6 called "Pocket PC" and compiled it just as I would normally do to run on my desk top. It runs on my desk top perfectly...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.