CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF and /bigobj error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2019, 16:27
Default UDF and /bigobj error
  #1
Member
 
Join Date: Feb 2013
Posts: 60
Rep Power: 13
ansys_matt is on a distinguished road
Hello,


I have run into an error when compiling a very large UDF. The error looks like this:


fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj

If you do some searching you will see that the /bigobj compiler flag can be used to overcome this error, but I am not sure how to get ANSYS to recognize it.



One approach I thought of was to compile the udf directly in Visual Studio instead of having ANSYS compile it by calling Visual Studio under the sheets. But I am not sure what I need to do to compile directly in VS and then use the object file in ANSYS.


Does anyone know how to do this?
ansys_matt is offline   Reply With Quote

Old   June 23, 2019, 22:42
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
split your UDF into several files

best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
bigobj, error, fluent, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 20:10.