Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Matlab compiler: another problem with a simple file
Hi,
I read many posts about these problems, but i did't find a solution for
the mine.

I want to compile this simple file:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function doppio=perdue(n)
doppio=n*2;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I used
 

and I got a perdue.c file.
Then I tried to use
 

but I got errors, using LCC or Borland compiler.
These are the error messages:

 =================LCC====================
====================== 
main.obj .text: undefined reference to '_WinMain@16'

MBUILD.BAT: Error: Link of 'perdue.exe' failed.

??? Error using ==> mbuild
Unable to complete successfully


 =================BORLAND================
===================== 
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_main' referenced from
C:\PROGRAMMI\BORLAND\BCC55\LIB\C0X32.OBJ

MBUILD.BAT: Error: Link of 'perdue.exe' failed.

??? Error using ==> mbuild
Unable to complete successfully

 ========================================
=====================

What can I do?

Thanks in advance,
Paolo Bocchini

--
Paolo Bocchini - Civil Engineer
Structural mechanics PhD student
Web: www.distart.ing.unibo.it
name.surname at mail.ing.unibo.it

Report this thread to moderator Post Follow-up to this message
Old Post
Pèval
04-28-05 02:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Matlab archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:20 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.