473,698 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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((v oid *)&FailureBuffe r.date,
(const void *)&g_CurrentTim e, sizeof(timestam p_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 10943
"suppamax" <ma************ @gmail.comwrote in message
news:ff******** *************** ***********@f63 g2000hsf.google groups.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((v oid *)&FailureBuffe r.date,
(const void *)&g_CurrentTim e, sizeof(timestam p_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
microcontrolle r.

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((v oid *)&FailureBuffe r.date,
(const void *)&g_CurrentTim e, sizeof(timestam p_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************ *************** *******@f63g200 0hsf.googlegrou ps.com>,
suppamax <ma************ @gmail.comwrite s
>Hi everybody!

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

I'm analysing my C program for Microchip PIC18F
microcontrolle r.

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
1028
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 syncronization with remote database using merge replication. I found contradictory results while installing the application. I will mention here all the steps that I done while creating and installing setups. Result: Case 1: worked fine. ...
1
1630
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 have to install the Client Tools on the New PC but after that, how do I access the SQL Server that is on the Original PC. The SQL Server is setup with mixed (both Windows Authentication and SQL Server Authentication). Just how do I use the SQL...
5
2430
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 the whole dir from my PC to c:\inetpub\wwwroot of the other PC and tried to access it (http://localhost/WebApplication1/Assistance.aspx). I can't see the buttons or the forms. What other steps do I need to take to transfer a web application from a...
5
9228
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 enough?? thanks regards
8
4822
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 invoke a CAB file from the VB app? Thanks
2
2249
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 and see the database, no rows are inserted. I redirected the output to another file. It shows success for all inserts, but no rows in database. This is happening only when the PC has IP clash, that too not all times. I wasn't able to trace out...
1
1210
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 problems with security trying to set up this kind of infrastructure. We gave the ASPNET user an implicit password, and specified this password in machine.config:
2
6831
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 "spacebar") from one PC on our network to another programatically. My scenario is this
20
1915
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 windows not for any personal computer. Calling Windows PC seems to be something that Apple did so they would not have to directly mention Windows. Could all the places that say PC that are not referring to Personal Computers in general be...
5
2966
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 normally. I then copied the application file to my Pocket PC. When I try to run it on my Pocket PC I get the error message " 'Pocket PC' is not a valid Pocket PC application ". I am right in assuming that I cannot use VB6 to write programs...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.