473,326 Members | 2,012 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,326 software developers and data experts.

using fis.c in a c++ project

Hi to all,
I'm a newbie with the c++, I have the preparation of base given from
the Deitel & Deitel... I am trying to use the fis.c class of matlab
fuzzy toolbox in my c++ project.
Watching the fismain.c I have thought that it was corrected to use the
preprocessor #includes "fis.c" but when I compile give errors on the
fis.c. I think because it's a class written in C. How I can make in
order to use in my c++ project the functions of the class fis? I pray
to you you help me... I use eclipse... thanks to all

Dec 16 '05 #1
3 3095
On 16 Dec 2005 09:27:18 -0800, "Martin" <di***************@gmail.com>
wrote:
Hi to all,
I'm a newbie with the c++, I have the preparation of base given from
the Deitel & Deitel... I am trying to use the fis.c class of matlab
fuzzy toolbox in my c++ project.
Watching the fismain.c I have thought that it was corrected to use the
preprocessor #includes "fis.c" but when I compile give errors on the
fis.c. I think because it's a class written in C. How I can make in
order to use in my c++ project the functions of the class fis? I pray
to you you help me... I use eclipse... thanks to all


fis.c isn't a header file - it should be compiled separately rather
than including directly into your source code. I imagine there is an
appropriate header file (most likely with the file extension .h)
containing definitions for items in the fis.c, which you will include
into your source files to reference the items in fis.c. As it's C
code, you will probably need to include the header like this (assuming
it's called fis.h):

extern "C"
{
#include "fis.h"
}
Dec 16 '05 #2
I've used #include "fis.c" because it's used in a c example class,
fismain.c

I found in a subdirectory the file fis.h but it does'nt contain the
function of the fis class... However I tryed to compile fis.c with cc
of cygwin and it report this error :
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o)::
undefined reference to '-WinMain@16'
collect2: ld returned 1 exit status...

what is mean???

Dec 16 '05 #3
On 16 Dec 2005 10:19:24 -0800, "Martin" <di***************@gmail.com>
wrote:
I've used #include "fis.c" because it's used in a c example class,
fismain.c

I found in a subdirectory the file fis.h but it does'nt contain the
function of the fis class... However I tryed to compile fis.c with cc
of cygwin and it report this error :
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o)::
undefined reference to '-WinMain@16'
collect2: ld returned 1 exit status...

what is mean???


I'm afraid this is off-topic here, so all I'll say is that it seems
like you are compiling a Windows program by mistake, so it's looking
for WinMain as an entry point instead of main. You should really ask
about that in a Cygwin group.

As for fis.h - it won't contain many actual function bodies, but if
it's the right file it will contain the declarations for the
functions.
Dec 16 '05 #4

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

Similar topics

1
by: Jimmy Tran | last post by:
Hi Folks, I have a web database written in asp and using access97. I have many projects, but each project is being held responsible by a person. All people and projects come from the database....
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
5
by: Derek Martin | last post by:
I am creating a windows service and have added a reference to a DLL project that I have created. That DLL file is correctly referenced in both a windows app and a web app, all in the same...
2
by: Bill Nguyen | last post by:
I would like to add a new VB.NET project using the same folder being used by another project so that I can share several forms already creaded by the other project. However, .NET created a new...
1
by: Diffident | last post by:
Hello All, I have a question as to why my users are noticing error when I am building the project on the production system. Here is the problem's background. In order to build the project on...
8
by: Bruce | last post by:
I am using VB in Vs2005. Am I missing something or does VB not have the concept of "builds" (release/debug) like in VC? I wrote an assembly and I would like to have a debug version of the DLL...
12
by: BDowling | last post by:
Hi all, I have an existing Visual C++ project that builds a DLL (not COM or ATL or anything). I wish to use this DLL in a Visual Studio 2005 C# project without having to define each function and...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
6
by: Daniel Kraft | last post by:
Hi all, in my C++ projects, I usually make "heavy use" of namespaces to "encapsulate" my code. When I have for instance something like this: namespace project { namespace part1 { ... }...
3
by: Jeff | last post by:
I have a solution with two projects. Project A is the startup project, while Project B serves as the project with the data logic. At run time, the first thing I need to do is write to Project...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.