无法找到ptlib.h文件问题。。。

jack444 2010-01-28 12:17:37
从网上找的一个制作协议栈的项目,
编译时错误提示信息:Cannot open include file: ptlib.h

该项目的下载地址:
http://d.download.csdn.net/down/1115605/jinyanli

不清楚什么原因?

还有个问题就是:协议栈是什么意思?就是一个DLL文件么?
...全文
581 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
lu_neverbackdown 2010-03-10
  • 打赏
  • 举报
回复
fffffffffffffffffffffffffff
jack444 2010-01-28
  • 打赏
  • 举报
回复
对ptlib类库不清楚,
头文件里面的内容没问题吧?
还有就是是否需要在LINK里面添加LIB文件?
hzy694358 2010-01-28
  • 打赏
  • 举报
回复
如果有这个头文件的话,那应该是路径问题
查查吧
jack444 2010-01-28
  • 打赏
  • 举报
回复
/*
* ptlib.h
*
* Umbrella include for all non-GUI classes.
*
* Portable Windows Library
*
* Copyright (c) 1993-1998 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Portable Windows Library.
*
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
*
* Portions are Copyright (C) 1993 Free Software Foundation, Inc.
* All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* $Log: ptlib.h,v $
* Revision 1.27 2003/04/16 07:16:55 craigs
* Modified for new autoconf based configuration
*
* Revision 1.26 2002/04/09 02:30:18 robertj
* Removed GCC3 variable as __GNUC__ can be used instead, thanks jason Spence
*
* Revision 1.25 2002/01/22 03:54:41 craigs
* Removed pwavfile.h, as this has moved to PTCLib
*
* Revision 1.24 2001/07/19 09:53:29 rogerh
* Add the PWAVFile class to read and write .wav files
*
* Revision 1.23 2000/12/19 22:20:26 dereks
* Add video channel classes to connect to the PwLib PVideoInputDevice class.
* Add PFakeVideoInput class to generate test images for video.
*
* Revision 1.22 2000/06/26 11:17:19 robertj
* Nucleus++ port (incomplete).
*
* Revision 1.21 1999/08/17 03:46:40 robertj
* Fixed usage of inlines in optimised version.
*
* Revision 1.20 1999/06/17 13:38:11 robertj
* Fixed race condition on indirect channel close, mutex needed in PIndirectChannel.
*
* Revision 1.19 1999/06/13 13:54:07 robertj
* Added PConsoleChannel class for access to stdin/stdout/stderr.
*
* Revision 1.18 1998/11/30 22:08:56 robertj
* Fixed backslash in #include
*
* Revision 1.17 1998/11/30 02:50:43 robertj
* New directory structure
*
* Revision 1.16 1998/10/31 12:46:57 robertj
* Renamed file for having general thread synchronisation objects.
*
* Revision 1.15 1998/09/23 06:19:52 robertj
* Added open source copyright license.
*
* Revision 1.14 1998/05/30 13:25:00 robertj
* Added PSyncPointAck class.
*
* Revision 1.13 1998/03/20 03:16:10 robertj
* Added special classes for specific sepahores, PMutex and PSyncPoint.
*
* Revision 1.12 1996/09/14 13:09:16 robertj
* Major upgrade:
* rearranged sockets to help support IPX.
* added indirect channel class and moved all protocols to descend from it,
* separating the protocol from the low level byte transport.
*
* Revision 1.11 1996/08/08 10:08:40 robertj
* Directory structure changes for common files.
*
* Revision 1.10 1996/05/23 09:57:24 robertj
* Changed process.h to pprocess.h to avoid name conflict.
*
* Revision 1.9 1995/07/31 12:06:21 robertj
* Added semaphore class.
*
* Revision 1.8 1995/03/12 04:44:56 robertj
* Added dynamic link libraries.
*
* Revision 1.7 1994/09/25 10:43:57 robertj
* Added pipe channel.
*
* Revision 1.6 1994/08/23 11:32:52 robertj
* Oops
*
* Revision 1.5 1994/08/22 00:46:48 robertj
* Added pragma fro GNU C++ compiler.
*
* Revision 1.4 1994/07/25 03:36:03 robertj
* Added sockets to common, normalising to same comment standard.
*
* Revision 1.3 1994/07/21 12:17:41 robertj
* Sockets.
*
* Revision 1.2 1994/06/25 12:27:39 robertj
* *** empty log message ***
*
* Revision 1.1 1994/04/01 14:38:42 robertj
* Initial revision
*
*/

#ifndef _PTLIB_H
#define _PTLIB_H

#ifdef __GNUC__

#pragma interface

#if !defined(__USE_STD__) && __GNUC__ >= 3
#define __USE_STD__
#endif

#endif

#ifdef __NUCLEUS_PLUS__
#include "nucpp.h"
#endif

#ifdef __USE_STD__
using namespace std;
#endif

#include "ptbuildopts.h"
#include <ptlib/contain.h>

///////////////////////////////////////////////////////////////////////////////
// PTime

#include <ptlib/ptime.h>


///////////////////////////////////////////////////////////////////////////////
// PTimeInterval

#include <ptlib/timeint.h>


///////////////////////////////////////////////////////////////////////////////
// PTimer

#include <ptlib/timer.h>


///////////////////////////////////////////////////////////////////////////////
// PDirectory

#include <ptlib/pdirect.h>


///////////////////////////////////////////////////////////////////////////////
// PFilePath

#include <ptlib/filepath.h>


///////////////////////////////////////////////////////////////////////////////
// PConfig

#include <ptlib/config.h>


///////////////////////////////////////////////////////////////////////////////
// PArgList

#include <ptlib/args.h>


///////////////////////////////////////////////////////////////////////////////
// PThread

#include <ptlib/thread.h>


///////////////////////////////////////////////////////////////////////////////
// PProcess

#include <ptlib/pprocess.h>


///////////////////////////////////////////////////////////////////////////////
// PSemaphore

#include <ptlib/semaphor.h>


///////////////////////////////////////////////////////////////////////////////
// PMutex

#include <ptlib/mutex.h>


///////////////////////////////////////////////////////////////////////////////
// PSyncPoint

#include <ptlib/syncpoint.h>


///////////////////////////////////////////////////////////////////////////////
// PSyncPointAck, PCondMutex etc

#include <ptlib/syncthrd.h>


///////////////////////////////////////////////////////////////////////////////
// PDynaLink

#include <ptlib/dynalink.h>


///////////////////////////////////////////////////////////////////////////////
// PChannel

#include <ptlib/channel.h>


///////////////////////////////////////////////////////////////////////////////
// PIndirectChannel

#include <ptlib/indchan.h>


///////////////////////////////////////////////////////////////////////////////
// PFile

#include <ptlib/file.h>


///////////////////////////////////////////////////////////////////////////////
// PTextFile

#include <ptlib/textfile.h>


///////////////////////////////////////////////////////////////////////////////
// PStructuredFile

#include <ptlib/sfile.h>


///////////////////////////////////////////////////////////////////////////////
// PConsoleChannel

#include <ptlib/conchan.h>


///////////////////////////////////////////////////////////////////////////////
// PSound

#include <ptlib/sound.h>

///////////////////////////////////////////////////////////////////////////////
// PVideoChannel

#include <ptlib/video.h>


///////////////////////////////////////////////////////////////////////////////


#if P_USE_INLINES
#include <ptlib/ptlib.inl>
#include <ptlib/osutil.inl>

#endif

#endif // _PTLIB_H


// End Of File ///////////////////////////////////////////////////////////////
jack444 2010-01-28
  • 打赏
  • 举报
回复
参考下面连接里面的代码
自己新建了一个ptlib,不知道是否可以?

请问在那里可以下载:ptlib.h
http://topic.csdn.net/t/20050629/14/4112483.html
jack444 2010-01-28
  • 打赏
  • 举报
回复
ding...
昵称很不好取 2010-01-28
  • 打赏
  • 举报
回复
ptlib.h问题参考如下网址:
http://topic.csdn.net/t/20050629/14/4112483.html

协议栈其实就是一组协议,osi网络7层模型就是一个协议栈
oldn123 2010-01-28
  • 打赏
  • 举报
回复
#include "XXX\ptlib.h" 这个xxx可能不正确,所以没对应到该文件。

还有可能是就是你的工程里根本就没有ptlib.h这个文件,所以当然找不到了.
yui2010 2010-01-28
  • 打赏
  • 举报
回复
ding...
loveav2010 2010-01-28
  • 打赏
  • 举报
回复
下面的SIP协议栈,不知道是否可以直接使用?

SIP协议栈SIPX.rar

http://download.csdn.net/source/1176663#acomment

16,473

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧